We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7e6680 commit 0d6bcc3Copy full SHA for 0d6bcc3
1 file changed
app/Controller/AppController.php
@@ -180,7 +180,7 @@ public function __initConfiguration()
180
181
protected function __setTheme()
182
{
183
- 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))
184
$this->theme = Configure::read('theme');
185
}
186
0 commit comments