Validating error message for function "chmod" when is in the disable_functions list (2)

This commit is contained in:
Vera Osokina
2013-06-26 14:42:38 -04:00
parent c113922bd6
commit 70c644ce63

View File

@@ -2614,7 +2614,7 @@ class G
G::verifyPath( $path, true );
}
move_uploaded_file( $file, $path . "/" . $nameToSave );
chmod( $path . "/" . $nameToSave, $permission );
@chmod( $path . "/" . $nameToSave, $permission );
umask( $oldumask );
} catch (Exception $oException) {
throw $oException;
@@ -2676,7 +2676,7 @@ class G
imagecopyresampled( $image_p, $image, 0, 0, 0, 0, $resWidth, $resHeight, $width, $height );
$outputFn( $image_p, $saveTo );
chmod( $saveTo, 0666 );
@chmod( $saveTo, 0666 );
}
/**