From 6a54409eb044948947f409466a734764670c0027 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 3 Nov 2007 13:37:38 +0000 Subject: issue76, make thumbnail directory configureable git-svn-id: file:///var/lib/svn/phpfspot/trunk@293 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index 50ab45e..cc1c873 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); @@ -1910,8 +1910,8 @@ class PHPFSPOT { public function get_thumb_path($width, $photo) { $sub_path = substr($this->getMD5($photo), 0, 2); - return $this->cfg->base_path - . "/thumbs/" + return $this->cfg->thumb_path + . "/" . $sub_path . "/" . $width -- cgit v1.2.3-18-g5258