mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
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:
parent
9206823d60
commit
5a125dcb83
@ -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']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user