bug in insertRegularFile() method
You need to be logged in to post messages in the forums. New users may register here.
|
Marko Žmak
Member since: 09 January 2008
Posts: 52
|
Sunday 03 October 2010 12:09:46 am
There's a bug when using insertRegularFile() class method, the method always returns false. That's because it tires to create a directory that already exists.
The solution...
In datatypes/ezvideoflv/ezvideoflvtype.php, in insertRegularFile() class method this code:
if ( !eZDir::mkdir( $destination, false, true ) )
{
umask( $oldumask );
return false;
}
should be replaced with this one:
if ( !file_exists($destination) )
{
if ( !eZDir::mkdir( $destination, false, true ) )
{
umask( $oldumask );
return false;
}
}
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|
|
You need to be logged in to post messages in the forums. New users may register here.