1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Issue #1114 - Added additional debug info to media-class and prevented errors such as "Image not Found" being echoed to the browser.

This commit is contained in:
Cameron 2015-08-24 10:10:08 -07:00
parent e09688788c
commit c86e9812f3

View File

@ -1411,9 +1411,8 @@ class e_media
}
catch (Exception $e)
{
$error = $e->getMessage();
echo $error;
e107::getMessage()->addDebug($error);
$error = array('thumbnailer'=> $e->getMessage(), 'src'=>$src, 'dest'=>$dest, 'savePath'=>$destFilePath, 'backtrace'=>'e_media::resizeImage');;
e107::getMessage()->addDebug(print_a($error,true));
e107::getLog()->add("RESIZE ERROR",$error,E_LOG_INFORMATIVE,'RESIZE');
return false;
}