limit percentage of font-size for tag cloud entries to intenger values
[phpfspot.git] / phpfspot_img.php
index 4bafa42bbf8a3ef6c1b532b6a5395bb8e7f4042e..0afdd7b2d8dc5f728492d0dffd32b8ff405bd143 100644 (file)
@@ -22,10 +22,9 @@ class PHPFSPOT_IMG {
 
    public function show($idx, $width = "")
    {
-      $details = $this->parent->get_photo_details($idx);
+      $this->parent->gen_thumbs($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);
+      $details = $this->parent->get_photo_details($idx);
 
       if($width == "")
          $fullpath = $this->parent->translate_path($details['directory_path'])  ."/". $details['name'];