mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
Merge branch '2.x' into 2.1
Conflicts: php/elFinderVolumeDriver.class.php
This commit is contained in:
@@ -315,9 +315,11 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
|
||||
$stat['mime'] = $dir ? 'directory' : $this->mimetype($path);
|
||||
$stat['ts'] = filemtime($path);
|
||||
$stat['read'] = is_readable($path);
|
||||
$stat['write'] = is_writable($path);
|
||||
if ($stat['read']) {
|
||||
//logical rights first
|
||||
$stat['read'] = is_readable($path)? null : false;
|
||||
$stat['write'] = is_writable($path)? null : false;
|
||||
|
||||
if (is_null($stat['read'])) {
|
||||
$stat['size'] = $dir ? 0 : $size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user