From 3b33d8a17f53c266483f818e8832d5ea01df3dd1 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 6 Mar 2016 15:46:26 +0800 Subject: [PATCH] fixed function name --- includes/Utils.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Utils.class.php b/includes/Utils.class.php index e4350975..3617b19a 100644 --- a/includes/Utils.class.php +++ b/includes/Utils.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: printempw - * @Last Modified time: 2016-03-06 14:40:12 + * @Last Modified time: 2016-03-06 15:44:32 */ class Utils @@ -72,10 +72,10 @@ class Utils $dh = opendir($dir); $size = 0; while(false !== ($file = @readdir($dh))) { - if ($file!='.' and $file!='..') { + if ($file!='.' && $file!='..') { $path = $dir.'/'.$file; if (is_dir($path)) { - $size += $this->dir_size($path); + $size += $this->getDirSize($path); } else if (is_file($path)) { $size += filesize($path); }