From c54dcf670a6ea58d885eb143c0eac8d90d3020f7 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 9 Jun 2007 07:08:46 +0000 Subject: additional resolution for bubble images image viewer class now uses parents thumbnail handling functions git-svn-id: file:///var/lib/svn/phpfspot/trunk@68 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot_img.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'phpfspot_img.php') diff --git a/phpfspot_img.php b/phpfspot_img.php index 4bafa42..e2e0325 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -22,10 +22,7 @@ class PHPFSPOT_IMG { public function show($idx, $width = "") { - $details = $this->parent->get_photo_details($idx); - - foreach(Array($this->parent->cfg->thumb_width, $this->parent->cfg->photo_width) as $resolution) - $this->parent->create_thumbnail($this->parent->translate_path($details['directory_path']) ."/". $details['name'], $resolution); + $this->parent->gen_thumbs($idx); if($width == "") $fullpath = $this->parent->translate_path($details['directory_path']) ."/". $details['name']; -- cgit v1.2.3-18-g5258