From: justdave%syndicomm.com <> Date: Tue, 2 Sep 2003 08:47:15 +0000 (+0000) Subject: Bug 165366: When editparams is used to shutdown Bugzilla, provide a link back to... X-Git-Tag: bugzilla-2.17.5~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e941bb43e05a8560f5412299216f0d3846511cb0;p=thirdparty%2Fbugzilla.git Bug 165366: When editparams is used to shutdown Bugzilla, provide a link back to editparams Patch by Vlad Dascalu r= kiko, a= justdave --- diff --git a/doeditparams.cgi b/doeditparams.cgi index 4abf1ccbf3..04d0ac98bd 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -48,6 +48,8 @@ if (!UserInGroup("tweakparams")) { PutHeader("Saving new parameters"); +my $howto = ""; + foreach my $i (GetParamList()) { my $name = $i->{'name'}; my $value = $::FORM{$name}; @@ -97,6 +99,12 @@ foreach my $i (GetParamList()) { } print "Changed " . html_quote($name) . ".
\n"; SetParam($name, $value); + if (($name eq "shutdownhtml") && ($value ne "")) { + # The system is down, inform the user how to restore it + $howto = "

Bugzilla has now been shut down, to re-enable ". + "the system, please return to ". + "editparams.cgi.

"; + } } } @@ -105,7 +113,8 @@ WriteParams(); unlink "data/versioncache"; -print "OK, done.

\n"; +print "

OK, done.

\n"; +print $howto; print "Edit the params some more.

\n"; print "Go back to the query page.\n";