]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 179380: if "enablequips" is off, quips.cgi now presents a message that...
authorjustdave%syndicomm.com <>
Mon, 11 Nov 2002 08:19:41 +0000 (08:19 +0000)
committerjustdave%syndicomm.com <>
Mon, 11 Nov 2002 08:19:41 +0000 (08:19 +0000)
r=myk, a=me

quips.cgi
template/en/default/global/user-error.html.tmpl

index c36a09b6c95970bb081e8c713664e4b326543a22..be8d9f3ec8e3ad8c6622aa3c87a39e07d768bfe1 100755 (executable)
--- a/quips.cgi
+++ b/quips.cgi
@@ -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") {
index 421e396cab71676c6d5da18c3779b27c274deef6..b3b50f68af0674b2ebe181e737b6625d37e2ceb6 100644 (file)
     [% 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