correction of chmod function

This commit is contained in:
nao-pon
2015-06-19 23:08:35 +09:00
parent 77403c68a0
commit f1f3b97cee
8 changed files with 61 additions and 21 deletions
+2 -2
View File
@@ -638,11 +638,11 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
/**
* chmod availability
*
* @return void
* @return bool
**/
protected function _chmod($path, $mode) {
$modeOct = is_string($mode) ? octdec($mode) : octdec(sprintf("%04o",$mode));
chmod($path, $modeOct);
return @chmod($path, $modeOct);
}
/**