fix: [theme] drop to default if nothing is configured instead of barfing

pull/79/head
iglocska 2021-10-21 11:26:15 +02:00
parent d4d5b28341
commit 4402e7e074
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class AppController extends Controller
if (!empty($user) && !empty($user->user_settings_by_name['ui.bsTheme']['value'])) {
$this->set('bsTheme', $user->user_settings_by_name['ui.bsTheme']['value']);
} else {
$this->set('bsTheme', Configure::read('ui.bsTheme'));
$this->set('bsTheme', Configure::check('ui.bsTheme') ? Configure::read('ui.bsTheme') : 'default');
}
if ($this->modelClass == 'Tags.Tags') {