mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +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:
@@ -1411,9 +1411,8 @@ class e_media
|
|||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
$error = $e->getMessage();
|
$error = array('thumbnailer'=> $e->getMessage(), 'src'=>$src, 'dest'=>$dest, 'savePath'=>$destFilePath, 'backtrace'=>'e_media::resizeImage');;
|
||||||
echo $error;
|
e107::getMessage()->addDebug(print_a($error,true));
|
||||||
e107::getMessage()->addDebug($error);
|
|
||||||
e107::getLog()->add("RESIZE ERROR",$error,E_LOG_INFORMATIVE,'RESIZE');
|
e107::getLog()->add("RESIZE ERROR",$error,E_LOG_INFORMATIVE,'RESIZE');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user