summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-24 16:32:07 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-24 16:32:07 +0000
commita276fb26e8cb49b1ece836e73055ca0a7226edb0 (patch)
treee7abb5c1345fa3724c41c44ac0dc6b503a07940e /phpfspot.class.php
parent5078667542f9770ca4c9ffce771a776c66d6d3e8 (diff)
issue44, renamed error-logging function
git-svn-id: file:///var/lib/svn/phpfspot/trunk@249 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php14
1 files 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!<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