diff --git a/src/Listener/ViewListener.php b/src/Listener/ViewListener.php index 186cc7e5..84490731 100644 --- a/src/Listener/ViewListener.php +++ b/src/Listener/ViewListener.php @@ -66,7 +66,7 @@ public function beforePaginate(Event $event) */ public function beforeRender(Event $event) { - if ($this->_controller()->name === 'CakeError') { + if ($this->_controller()->name === 'Error') { return; }