mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
correction of chmod function
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user