/** * returns the variable with the thumbnail image * * @param string $format gif, jpg, png, wbmp * @return mixed * @uses createThumbnail() * @uses CachedThumbnail::returnThumbnail() */ public function returnThumbnail($format = 'png') { parent::setOutputFormat($format); /*parent::setCache(); if ($this->cache_time === 0 || $this->cache->isPictureCached() === FALSE) { $this->createThumbnail(); if ($this->cache_time > 0) { $this->cache->writePictureCache($this->thumbnail, 100); } // end if } // end if */ return parent::returnThumbnail($format); }