diff --git a/config/bootstrap.php b/config/bootstrap.php index 4b48876..203ff7d 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -15,7 +15,7 @@ Configure::write('Cors', $config); -if ($config['exceptionRenderer']) { +if ($config['exceptionRenderer'] && Configure::read('Error.exceptionRenderer') != $config['exceptionRenderer']) { Configure::write('Error.baseExceptionRenderer', Configure::read('Error.exceptionRenderer')); Configure::write('Error.exceptionRenderer', $config['exceptionRenderer']); }