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'];