summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7688cbc)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
* 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
* 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
- 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);
{
return str_replace($this->cfg->path_replace_from, $this->cfg->path_replace_to, $path);
- $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)) {
$thumb_path = $this->get_thumb_path($this->cfg->photo_width, $photo);
if(!file_exists($orig_path)) {
$details = $this->get_photo_details($idx);
/* calculate file MD5 sum */
$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");
if(!file_exists($full_path)) {
$this->_error("File ". $full_path ." does not exist\n");
<br>
". $details['description']);
<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") {
/* get EXIF information if JPEG */
if($details['mime'] == "image/jpeg") {
/* no width specified - show photo in its original size */
if($width == 0) {
/* no width specified - show photo in its original size */
if($width == 0) {
- $fullpath = $this->parent->translate_path($this->parent->parse_uri($details['uri'], 'fullpath'));
+ $fullpath = $this->parent->translate_path($this->parent->parse_uri($details['uri']));
}
/* show thumbnail */
else {
}
/* show thumbnail */
else {