Skip to content

Commit

Permalink
Fixed issue: If an invalid admin theme is set (e.g. after upgrade) th…
Browse files Browse the repository at this point in the history
…e global settings are not properly read
  • Loading branch information
c-schmitz committed Apr 21, 2016
1 parent 504ef3b commit d2faa20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/globalsettings_helper.php
Expand Up @@ -32,7 +32,7 @@ function injectglobalsettings()
// So admintheme will have the value defined in the config-default file.
if (!is_dir( dirname(Yii::app()->request->scriptFile).'/styles/'.$setting->getAttribute('stg_value') ))
{
return;
continue;
}
}
Yii::app()->setConfig($setting->getAttribute('stg_name'), $setting->getAttribute('stg_value'));
Expand Down

0 comments on commit d2faa20

Please sign in to comment.