mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(legacy) move get_current_theme to guiconfig
This commit is contained in:
parent
790ff7c9ca
commit
852a28428f
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user