diff --git a/src/www/guiconfig.inc b/src/www/guiconfig.inc index 53b1b35c8..27c6dfc05 100644 --- a/src/www/guiconfig.inc +++ b/src/www/guiconfig.inc @@ -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; +} +