From: <jon...@us...> - 2011-01-10 15:46:02
|
Revision: 31847 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=31847&view=rev Author: jonnybradley Date: 2011-01-10 15:45:56 +0000 (Mon, 10 Jan 2011) Log Message: ----------- [FIX] images: suppress error with exif_thumbnail problems (so it gets built the normal way) Modified Paths: -------------- trunk/lib/images/abstract.php Modified: trunk/lib/images/abstract.php =================================================================== --- trunk/lib/images/abstract.php 2011-01-10 14:46:45 UTC (rev 31846) +++ trunk/lib/images/abstract.php 2011-01-10 15:45:56 UTC (rev 31847) @@ -19,7 +19,7 @@ function __construct($image, $isfile = false) { if ( ! empty($image) || $this->filename !== null ) { if ( is_readable( $this->filename ) && function_exists('exif_thumbnail') && in_array(image_type_to_mime_type(exif_imagetype($this->filename)), array('image/jpeg', 'image/tiff'))) { - $this->thumb = exif_thumbnail($this->filename, $this->width, $this->height); + $this->thumb = @exif_thumbnail($this->filename, $this->width, $this->height); if (trim($this->thumb) == "") $this->thumb = NULL; } $this->classname = get_class($this); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |