Commit 5523fab2 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) align theme selection a bit more

parent a7c3024f
......@@ -213,7 +213,9 @@ class ControllerBase extends ControllerRoot
$this->view->menuSystem = $menu->getItems("/ui".$this->router->getRewriteUri());
// 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)) {
if ($cnf->object()->theme != null && !empty($cnf->object()->theme) &&
is_dir('/usr/local/opnsense/www/themes/'.(string)$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