mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Fallback to the default renderer if the config key is missing.
This commit is contained in:
parent
ceb46b5d2c
commit
dea4fa4d73
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue