From a276fb26e8cb49b1ece836e73055ca0a7226edb0 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Tue, 24 Jul 2007 16:32:07 +0000 Subject: [PATCH] issue44, renamed error-logging function git-svn-id: file:///var/lib/svn/phpfspot/trunk@249 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpfspot.class.php b/phpfspot.class.php index 0676065..6a85ccd 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -293,11 +293,11 @@ class PHPFSPOT { $thumb_path = $this->cfg->base_path ."/thumbs/". $this->cfg->photo_width ."_". $this->getMD5($photo); if(!file_exists($orig_path)) { - $this->_warning("Photo ". $orig_path ." does not exist!
\n"); + $this->_error("Photo ". $orig_path ." does not exist!
\n"); } if(!is_readable($orig_path)) { - $this->_warning("Photo ". $orig_path ." is not readable for user ". $this->getuid() ."
\n"); + $this->_error("Photo ". $orig_path ." is not readable for user ". $this->getuid() ."
\n"); } /* If the thumbnail doesn't exist yet, try to create it */ @@ -353,7 +353,7 @@ class PHPFSPOT { $this->tmpl->assign('current', $current); } else { - $this->_warning("Can't open file ". $thumb_path ."\n"); + $this->_error("Can't open file ". $thumb_path ."\n"); return; } @@ -1112,12 +1112,12 @@ class PHPFSPOT { $full_path = $this->translate_path($details['directory_path']) ."/". $details['name']; if(!file_exists($full_path)) { - $this->_warning("File ". $full_path ." does not exist\n"); + $this->_error("File ". $full_path ." does not exist\n"); return; } if(!is_readable($full_path)) { - $this->_warning("File ". $full_path ." is not readable for ". $this->getuid() ."\n"); + $this->_error("File ". $full_path ." is not readable for ". $this->getuid() ."\n"); return; } @@ -1411,7 +1411,7 @@ class PHPFSPOT { } // checkifImageSupported() - public function _warning($text) + public function _error($text) { switch($this->cfg->logging) { case 'display': @@ -1426,7 +1426,7 @@ class PHPFSPOT { break; } - } // _warning() + } // _error() /** * output calendard input fields -- 2.25.1