diff options
Diffstat (limited to 'phpfspot_img.php')
-rw-r--r-- | phpfspot_img.php | 5 |
1 files changed, 1 insertions, 4 deletions
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']; |