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...
This commit is contained in:
Franco Fichtner 2023-10-13 08:33:31 +02:00
parent 9206823d60
commit 5a125dcb83

View File

@ -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']);