issue44, renamed error-logging function
authorAndreas Unterkircher <unki@netshadow.at>
Tue, 24 Jul 2007 16:32:07 +0000 (16:32 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Tue, 24 Jul 2007 16:32:07 +0000 (16:32 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@249 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index 067606572f0b32e1b98bc20646f4ccf59c70cd16..6a85ccda447a7bfca76307038e6612be97423ac2 100644 (file)
@@ -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!<br />\n");
+         $this->_error("Photo ". $orig_path ." does not exist!<br />\n");
       }
 
       if(!is_readable($orig_path)) {
-         $this->_warning("Photo ". $orig_path ." is not readable for user ". $this->getuid() ."<br />\n");
+         $this->_error("Photo ". $orig_path ." is not readable for user ". $this->getuid() ."<br />\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