mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
Fix archive size having leading 0
This commit is contained in:
@@ -1143,11 +1143,11 @@ class elFinderVolumeFTP extends elFinderVolumeDriver {
|
||||
if (is_dir($p) && $this->_findSymlinks($p)) {
|
||||
return true;
|
||||
} elseif (is_file($p)) {
|
||||
$this->archiveSize += sprintf('%u', filesize($p));
|
||||
$this->archiveSize = sprintf('%u', filesize($p));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->archiveSize += sprintf('%u', filesize($path));
|
||||
$this->archiveSize = sprintf('%u', filesize($path));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -973,12 +973,12 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
if (is_dir($p) && $this->_findSymlinks($p)) {
|
||||
return true;
|
||||
} elseif (is_file($p)) {
|
||||
$this->archiveSize += sprintf('%u', filesize($p));
|
||||
$this->archiveSize = sprintf('%u', filesize($p));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
$this->archiveSize += sprintf('%u', filesize($path));
|
||||
$this->archiveSize = sprintf('%u', filesize($path));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user