diff options
author | justdave%syndicomm.com <> | 2003-09-02 10:47:15 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-09-02 10:47:15 +0200 |
commit | e941bb43e05a8560f5412299216f0d3846511cb0 (patch) | |
tree | 5514c5b31abde9e7cda96c25b69cec4f73fd3982 /doeditparams.cgi | |
parent | 4fcf4f3c9a3b72b0f45adef6a720c3f16678edd7 (diff) | |
download | bugzilla-e941bb43e05a8560f5412299216f0d3846511cb0.tar.gz bugzilla-e941bb43e05a8560f5412299216f0d3846511cb0.tar.xz |
Bug 165366: When editparams is used to shutdown Bugzilla, provide a link back to editparams
Patch by Vlad Dascalu <jocuri@softhome.net>
r= kiko, a= justdave
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-x | doeditparams.cgi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doeditparams.cgi b/doeditparams.cgi index 4abf1ccbf..04d0ac98b 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) . ".<br>\n"; SetParam($name, $value); + if (($name eq "shutdownhtml") && ($value ne "")) { + # The system is down, inform the user how to restore it + $howto = "<p>Bugzilla has now been shut down, to re-enable ". + "the system, please return to ". + "<a href=\"editparams.cgi\">editparams.cgi</a>.</p>"; + } } } @@ -105,7 +113,8 @@ WriteParams(); unlink "data/versioncache"; -print "OK, done.<p>\n"; +print "<p>OK, done.</p>\n"; +print $howto; print "<a href=\"editparams.cgi\">Edit the params some more.</a><p>\n"; print "<a href=\"query.cgi\">Go back to the query page.</a>\n"; |