Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #22 from Zuluru/master
Browse files Browse the repository at this point in the history
Prevent double updating of exception renderer configuration
  • Loading branch information
ozee31 authored Jan 25, 2019
2 parents 0cf7ee0 + 18948e0 commit da42a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down

0 comments on commit da42a1a

Please sign in to comment.