Fallback to the default renderer if the config key is missing.

This commit is contained in:
mark_story 2013-03-30 13:40:58 -04:00
parent ceb46b5d2c
commit dea4fa4d73

View file

@ -113,7 +113,7 @@ class ErrorHandler {
if (!empty($config['log'])) {
CakeLog::write(LOG_ERR, self::_getMessage($exception));
}
$renderer = $config['renderer'];
$renderer = isset($config['renderer']) ? $config['renderer'] : 'ExceptionRenderer';
if ($renderer !== 'ExceptionRenderer') {
list($plugin, $renderer) = pluginSplit($renderer, true);
App::uses($renderer, $plugin . 'Error');