diff options
author | justdave%syndicomm.com <> | 2002-11-11 09:19:41 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2002-11-11 09:19:41 +0100 |
commit | b693f20047d849a9bf3c064412ef30d7041401f8 (patch) | |
tree | 56930e14f3c5ffdd4945ee54c17cf20d23a1e54d | |
parent | 6b4ffb0cf63a60500ae205692824879b63986edb (diff) | |
download | bugzilla-b693f20047d849a9bf3c064412ef30d7041401f8.tar.gz bugzilla-b693f20047d849a9bf3c064412ef30d7041401f8.tar.xz |
Fix for bug 179380: if "enablequips" is off, quips.cgi now presents a message that the quips are disabled instead of letting you view or add quips.
r=myk, a=me
-rwxr-xr-x | quips.cgi | 4 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -38,6 +38,10 @@ require "CGI.pl"; ConnectToDatabase(); confirm_login(); +if (Param('enablequips') eq "off") { + ThrowUserError("quips_disabled"); +} + my $action = $::FORM{'action'} || ""; if ($action eq "show") { diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 421e396ca..b3b50f68a 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -466,6 +466,10 @@ [% title = "No Query Name Specified" %] You must enter a name for your query. + [% ELSIF error == "quips_disabled" %] + [% title = "Quips Disabled" %] + Quips are disabled. + [% ELSIF error == "reassign_to_empty" %] [% title = "Illegal Reassignment" %] You cannot reassign to a bug to nobody. Unless you |