From 26640251cc8ace3a5fea3b6af121533150d8eed8 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sat, 28 Aug 2004 15:58:13 +0000 Subject: Patch for bug 248613: Custom global default platform/OS in non-usebrowserinfo scenarios; patch by Marc Schumann ; r=kiko, a=myk. --- Bugzilla/Config.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Bugzilla/Config.pm') 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'; -- cgit v1.2.3-24-g4f1b