Fix archive size having leading 0

This commit is contained in:
Dominik
2016-04-06 15:40:03 +02:00
parent 5316b6d60e
commit 9959047901
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;