Skip to content

Commit

Permalink
Change theme load (#281)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Touffet <[email protected]>
  • Loading branch information
StanByes and Eywek authored Jul 15, 2021
1 parent e7e6680 commit 0d6bcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function __initConfiguration()

protected function __setTheme()
{
if (!isset($this->params['prefix']) or $this->params['prefix'] !== "admin")
if (!isset($this->params['prefix']) or $this->params['prefix'] !== "admin" or (isset($this->params['prefix']) and $this->params['prefix'] === "admin" and $this->response->statusCode() >= 400))
$this->theme = Configure::read('theme');
}

Expand Down

0 comments on commit 0d6bcc3

Please sign in to comment.