From: <li...@us...> - 2011-12-31 05:52:29
|
Revision: 39354 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=39354&view=rev Author: lindonb Date: 2011-12-31 05:52:23 +0000 (Sat, 31 Dec 2011) Log Message: ----------- [FIX] Return error message to avoid fatal error Modified Paths: -------------- trunk/lib/wiki-plugins/wikiplugin_img.php Modified: trunk/lib/wiki-plugins/wikiplugin_img.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_img.php 2011-12-31 05:14:10 UTC (rev 39353) +++ trunk/lib/wiki-plugins/wikiplugin_img.php 2011-12-31 05:52:23 UTC (rev 39354) @@ -766,6 +766,10 @@ } else { $imageObj = new FileMetadata($src, true, $xmpview); } + if (isset($imageObj->error)) { + return '<em>' . tra('Plugin Img error: ') . $imageObj->error . '</em>'; + } + if (isset($imageObj->exif['FILE']['FileDateTime'])) { $imageObj->exif['FILE']['FileDateTime'] = $tikilib->get_long_datetime($imageObj->exif['FILE']['FileDateTime'], $user) . ' (Unixtime: ' . $imageObj->exif['FILE']['FileDateTime'] . ')'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |