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
This commit is contained in:
justdave%syndicomm.com 2002-11-11 00:19:43 +00:00
Родитель e8fa7a7caa
Коммит c28e02e9db
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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") {

Просмотреть файл

@ -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