mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
CakeException subclasses render correctly now.
CakeException subclasses without their own view files, would trigger a MissingViewException, which would result in no application helpers being used. This could cause issues when app helpers are used in the layout. Instead a error500 template is rendered using app helpers. Fixes #2274, fixes #2004
This commit is contained in:
parent
95b85118c7
commit
3e2f8ddf98
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ class ExceptionRenderer {
|
|||
try {
|
||||
$this->controller->set($error->getAttributes());
|
||||
$this->_outputMessage($this->template);
|
||||
} catch (MissingViewException $e) {
|
||||
$this->_outputMessage('error500');
|
||||
} catch (Exception $e) {
|
||||
$this->_outputMessageSafe('error500');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue