diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-04-12 12:28:49 +0200 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-04-12 12:58:37 +0200 |
commit | 14eb0419012155b6d36f25dd9bd1d2ba683dbed7 (patch) | |
tree | d20a0d13ce26aeaaa84e26b43a4abb665b156789 /phpfspot.class.php | |
parent | 7688cbcdf666c2c538bc35cbc4efbe929a8fa9da (diff) |
translate_path() only needs one parameters. remove unused second one
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index 12e14fa..b8f45a8 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -488,10 +488,9 @@ class PHPFSPOT { * is usally not the same as on the webserver, this function * will replace the path with that one specified in the cfg * @param string $path - * @param integer $width * @return string */ - public function translate_path($path, $width = 0) + public function translate_path($path) { return str_replace($this->cfg->path_replace_from, $this->cfg->path_replace_to, $path); @@ -541,7 +540,7 @@ class PHPFSPOT { return; } - $orig_path = $this->translate_path($this->parse_uri($details['uri'], 'fullpath')); + $orig_path = $this->translate_path($this->parse_uri($details['uri'])); $thumb_path = $this->get_thumb_path($this->cfg->photo_width, $photo); if(!file_exists($orig_path)) { @@ -1555,7 +1554,7 @@ class PHPFSPOT { $details = $this->get_photo_details($idx); /* calculate file MD5 sum */ - $full_path = $this->translate_path($this->parse_uri($details['uri'], 'fullpath')); + $full_path = $this->translate_path($this->parse_uri($details['uri'])); if(!file_exists($full_path)) { $this->_error("File ". $full_path ." does not exist\n"); @@ -2200,7 +2199,7 @@ class PHPFSPOT { <br> ". $details['description']); - $orig_path = $this->translate_path($this->parse_uri($details['uri'], 'fullpath')); + $orig_path = $this->translate_path($this->parse_uri($details['uri'])); /* get EXIF information if JPEG */ if($details['mime'] == "image/jpeg") { |