ErrorController: Set $this->rerenderLayout in init()

Solves the issue that when being redirected directly after login
or any other route which causes the layout being rerendered, we
are only presented with the inline layout of the error controller.
This commit is contained in:
Johannes Meyer 2017-06-29 09:51:24 +02:00
parent f6166b3ab6
commit 08095ad5e8
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,14 @@ class ErrorController extends ActionController
*/
protected $requiresAuthentication = false;
/**
* {@inheritdoc}
*/
public function init()
{
$this->rerenderLayout = $this->params->has('renderLayout');
}
/**
* Display exception
*/