Skip to content

Commit

Permalink
Fallback to the default renderer if the config key is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 30, 2013
1 parent ceb46b5 commit dea4fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Error/ErrorHandler.php
Expand Up @@ -113,7 +113,7 @@ public static function handleException(Exception $exception) {
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');
Expand Down

0 comments on commit dea4fa4

Please sign in to comment.