X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=4b033f612147cdcf573ede99d81f416d2ff3179c;hp=50ab45e139423f31c34f08d6c414af13062ac91c;hb=f712a8b25b297e90599491dfd59b8636843496a6;hpb=7f4f4e748a2b168d3242650431877c223d1174d5 diff --git a/phpfspot.class.php b/phpfspot.class.php index 50ab45e..4b033f6 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1166,7 +1166,7 @@ class PHPFSPOT { foreach($resolutions as $resolution) { $thumb_sub_path = substr($file_md5, 0, 2); - $thumb_path = $this->cfg->base_path ."/thumbs/". $thumb_sub_path ."/". $resolution ."_". $file_md5; + $thumb_path = $this->cfg->thumb_path ."/". $thumb_sub_path ."/". $resolution ."_". $file_md5; if(!file_exists(dirname($thumb_path))) { mkdir(dirname($thumb_path), 0755); @@ -1674,7 +1674,7 @@ class PHPFSPOT { - + getMD5($photo), 0, 2); - return $this->cfg->base_path - . "/thumbs/" + return $this->cfg->thumb_path + . "/" . $sub_path . "/" . $width