diff options
author | Phil Davis <phil.davis@inf.org> | 2015-11-20 13:09:31 +0545 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 07:53:35 -0500 |
commit | c040eeda3a9710869caf276a564207866497ee67 (patch) | |
tree | a65470e6bfcc4c573e8b531a46ca0993ef3fb686 /src | |
parent | 4b1a8a6c69f7b298b3f0f3de1cadd397d9cdd61f (diff) | |
download | pfsense-c040eeda3a9710869caf276a564207866497ee67.zip pfsense-c040eeda3a9710869caf276a564207866497ee67.tar.gz |
If webguicss is not yet specified then default to pfSense
On systems where webguicss (the theme) was not yet set in the config, the selection here was defaulting to other than pfSense.
Now that pfSense-dark has come along, it happened to be first in the list. When I changed something else in General Setup today, my them went to pfSense-dark because I did not notice the (accidentally) selected value that was in the field.
I also added a check for if the current webguicss is not a valid one - e.g. if a theme is selected in the config that is no longer on the system. That should help future-proof it so it will default back to pfSense.css in that case also.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/system.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 1f83b4a..4617bd6 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -467,6 +467,10 @@ foreach ($css as $file) { } } +if (($pconfig['webguicss'] == "") || (!isset($csslist[$pconfig['webguicss']]))) { + $pconfig['webguicss'] = "pfSense.css"; +} + $section = new Form_Section('Web configurator theme'); $section->addInput(new Form_Select( |