Skip to content

Commit

Permalink
Default error controller name is "Error" in 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad authored Jul 2, 2017
1 parent a0f8ce4 commit 43eb22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 43eb22b

Please sign in to comment.