Commit 852a2842 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) move get_current_theme to guiconfig

parent 790ff7c9
......@@ -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