diff options
author | jocuri%softhome.net <> | 2004-08-28 15:58:13 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-08-28 15:58:13 +0000 |
commit | 26640251cc8ace3a5fea3b6af121533150d8eed8 (patch) | |
tree | 735a76c0d51ab96c22360f64d0e4f0fde3b21ac2 /Bugzilla/Config.pm | |
parent | Patch for bug 235061: move CSS stylings in global.css if they are used across... (diff) | |
download | bugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.tar.gz bugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.tar.bz2 bugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.zip |
Patch for bug 248613: Custom global default platform/OS in non-usebrowserinfo scenarios; patch by Marc Schumann <marcschum@web.de>; r=kiko, a=myk.
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r-- | Bugzilla/Config.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 71bac4225..fa6fc3147 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -197,6 +197,19 @@ sub UpdateParams { # We don't want it, so get rid of it delete $param{'version'}; + # Change from usebrowserinfo to defaultplatform/defaultopsys combo + if (exists $param{'usebrowserinfo'}) { + if (!$param{'usebrowserinfo'}) { + if (!exists $param{'defaultplatform'}) { + $param{'defaultplatform'} = 'Other'; + } + if (!exists $param{'defaultopsys'}) { + $param{'defaultopsys'} = 'other'; + } + } + delete $param{'usebrowserinfo'}; + } + # Change from a boolean for quips to multi-state if (exists $param{'usequip'} && !exists $param{'enablequips'}) { $param{'enablequips'} = $param{'usequip'} ? 'on' : 'off'; |