Commit 35831895 authored by Ad Schellevis's avatar Ad Schellevis

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

parent 972737ec
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment