Skip to content

Commit 0d6bcc3

Browse files
StanByesEywek
andauthored
Change theme load (#281)
Co-authored-by: Valentin Touffet <Eywek@users.noreply.github.com>
1 parent e7e6680 commit 0d6bcc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Controller/AppController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function __initConfiguration()
180180

181181
protected function __setTheme()
182182
{
183-
if (!isset($this->params['prefix']) or $this->params['prefix'] !== "admin")
183+
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))
184184
$this->theme = Configure::read('theme');
185185
}
186186

0 commit comments

Comments
 (0)