Permalink
Browse files

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

  • Loading branch information...
markstory committed Mar 30, 2013
1 parent ceb46b5 commit dea4fa4d7313b1ba84b404d96bfdfe87720a9522
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Error/ErrorHandler.php
@@ -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');

0 comments on commit dea4fa4

Please sign in to comment.