]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 324346: When 'shutdownhtml' is set, accessing foo.cgi?format=bar displays plain...
authorlpsolit%gmail.com <>
Wed, 8 Feb 2006 06:46:28 +0000 (06:46 +0000)
committerlpsolit%gmail.com <>
Wed, 8 Feb 2006 06:46:28 +0000 (06:46 +0000)
Bugzilla.pm

index 86d6e6e70de5d9d0e665839c2fb8f25bfb6b9bc2..2a0a660148390a8e366abf26747f30112b7bf0dd 100644 (file)
@@ -94,8 +94,8 @@ if (!$^C
     # Generate and return a message about the downtime, appropriately
     # for if we're a command-line script or a CGI sript.
     my $extension;
-    if (i_am_cgi() && (!Bugzilla->cgi->param('format') 
-                       || Bugzilla->cgi->param('format') eq 'html')) {
+    if (i_am_cgi() && (!Bugzilla->cgi->param('ctype')
+                       || Bugzilla->cgi->param('ctype') eq 'html')) {
         $extension = 'html';
     }
     else {