]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 163331 - shutdownhtml is broken. Patch by gerv; r=bbaetz.
authorgerv%gerv.net <>
Tue, 20 Aug 2002 05:34:29 +0000 (05:34 +0000)
committergerv%gerv.net <>
Tue, 20 Aug 2002 05:34:29 +0000 (05:34 +0000)
CGI.pl
template/en/default/global/messages.html.tmpl

diff --git a/CGI.pl b/CGI.pl
index 76b88d45212269010127cc99df8366636f110fda..b2316d555d9669d922643e60f4f66702515f38ea 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -61,10 +61,7 @@ use vars qw($template $vars);
 # this message, of course, since it needs to be available in order for
 # the administrator to open Bugzilla back up.
 if (Param("shutdownhtml") && $0 !~ m:[\\/](do)?editparams.cgi$:) {
-    # The shut down message we are going to display to the user.
-    $::vars->{'title'} = "Bugzilla is Down";
-    $::vars->{'h1'} = "Bugzilla is Down";
-    $::vars->{'message'} = Param("shutdownhtml");
+    $::vars->{'message'} = "shutdown";
     
     # Return the appropriate HTTP response headers.
     print "Content-Type: text/html\n\n";
index 559bd5edf399600ca931fd29ff3547c22044d83a..d08bd21bb22c88e467ed9490f97c744b4c664029 100644 (file)
     intentionally cleared out the "Reassign bug to" 
     field, [% Param("browserbugmessage") %]
 
+  [% ELSIF message_tag == "shutdown" %]
+    [% title = "Bugzilla is Down" %]
+    [% Param("shutdownhtml") %]
+    
   [% ELSIF message_tag == "unknown_keyword" %]
     [% title = "Unknown Keyword" %]
     <code>[% keyword FILTER html %]</code> is not a known keyword.