(legacy) move get_current_theme to guiconfig

This commit is contained in:
Ad Schellevis 2015-07-21 15:22:37 +00:00
parent 790ff7c9ca
commit 852a28428f

View File

@ -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;
}