Commit 717ecc9b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) move get_current_theme to guiconfig

parent 71045bc2
......@@ -728,3 +728,15 @@ function get_menu_messages()
return ($menu_messages);
}
function get_current_theme()
{
$theme = 'opnsense';
if (isset($config['theme']) && is_dir('/usr/local/www/themes/' . $config['theme'])) {
$theme = $config['theme'];
}
return $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