mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(mvc) fix handling of empty theme tag, issue https://github.com/opnsense/core/issues/342
This commit is contained in:
parent
972737ec18
commit
3583189540
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user