From 5a125dcb83a5bf7eecbe3ef9b9b4a4de6673bbdb Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 13 Oct 2023 08:33:31 +0200 Subject: [PATCH] system: bootstrap an empty string to theme to squelch a warning The rest of the system knows to use "opnsense" already. The page throws the warning here but instead of hardcoding the theme name just give it an empty string so the first one is selected even though it might not be the right one. Hardcoding this doesn't feel right... --- src/www/system_general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/system_general.php b/src/www/system_general.php index 187ffad87..55ee4b271 100644 --- a/src/www/system_general.php +++ b/src/www/system_general.php @@ -55,7 +55,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['language'] = $config['system']['language']; $pconfig['prefer_ipv4'] = isset($config['system']['prefer_ipv4']); $pconfig['store_intermediate_certs'] = isset($config['system']['store_intermediate_certs']); - $pconfig['theme'] = $config['theme']; + $pconfig['theme'] = $config['theme'] ?? ''; $pconfig['timezone'] = empty($config['system']['timezone']) ? 'Etc/UTC' : $config['system']['timezone']; $pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']);