(mvc) fix handling of empty theme tag, issue https://github.com/opnsense/core/issues/342

This commit is contained in:
Ad Schellevis 2015-08-26 08:53:34 +02:00
parent 972737ec18
commit 3583189540

View File

@ -212,8 +212,8 @@ class ControllerBase extends ControllerRoot
$this->view->menuSystem = $menu->getItems("/ui".$this->router->getRewriteUri());
// set theme in ui_theme template var
if ($cnf->object()->theme != null) {
// set theme in ui_theme template var, let template handle its defaults (if there is no theme).
if ($cnf->object()->theme != null && !empty($cnf->object()->theme)) {
$this->view->ui_theme = $cnf->object()->theme;
}