Suppress Error at rename

If debugging  is one (_PS_MODE_DEV_ set to TRUE)
there is a warning on line 142 in /classes/Autoload.php at function
rename()
This commit is contained in:
ha99y
2013-08-28 18:56:49 -07:00
parent 4bb0e16509
commit 75303e82e0
+1 -1
View File
@@ -139,7 +139,7 @@ class Autoload
$filename_tmp = tempnam(dirname($filename), basename($filename.'.'));
if($filename_tmp !== FALSE and file_put_contents($filename_tmp, $content, LOCK_EX) !== FALSE)
{
rename($filename_tmp, $filename);
@rename($filename_tmp, $filename);
@chmod($filename, 0664);
}
else