From f6dd9061719934a0a117c0f1f66286d84eb62998 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 15 Apr 2013 16:09:59 +0200 Subject: [PATCH] replaced missing function defition from sphinx size calculation --- webui/model/health/health.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webui/model/health/health.php b/webui/model/health/health.php index 30cb9667..ec0e31ff 100644 --- a/webui/model/health/health.php +++ b/webui/model/health/health.php @@ -154,9 +154,8 @@ class ModelHealthHealth extends Model { } - public function get_sphinx_size() { + public function get_sphinx_size($directory = DIR_SPHINX) { $dirSize=0; - $directory = DIR_SPHINX; if(!$dh=opendir($directory)) { return false; @@ -171,7 +170,7 @@ class ModelHealthHealth extends Model { $dirSize += filesize($directory."/".$file); } if(is_dir($directory."/".$file)) { - $dirSize += getDirectorySize($directory."/".$file); + $dirSize += $this->get_sphinx_size($directory."/".$file); } }