From b259c4b4252cde8e7926690f6ba419d2ee7c59fc Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Wed, 2 Apr 2003 20:35:00 +0000 Subject: Bug 199813 - Make all users of ThrowUserError pass $vars in explicitly. r=gerv a=justdave --- template/en/default/global/user-error.html.tmpl | 42 ++++++++----------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'template/en') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index a89d029eb..fe1d9e223 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -34,14 +34,7 @@ [% DEFAULT title = "Error" %] [% error_message = BLOCK %] - [% IF error == "aaa_example_error_tag" %] - [% title = "Example Error" %] - This is an example error. The title is set above. This text is the body - of the error. It can contain arbitrary HTML, and also references - to any [% parameters %] which you may have set before calling - ThrowUserError. - - [% ELSIF error == "account_creation_disabled" %] + [% IF error == "account_creation_disabled" %] [% title = "Account Creation Disabled" %] Account self-creation has been disabled or restricted.
[% current_tab_name FILTER html %]
is not a legal tab name.
+ [% current_tab_name FILTER html %]
is not a legal tab name.
[% ELSIF error == "votes_must_be_nonnegative" %]
[% title = "Votes Must Be Non-negative" %]
@@ -593,14 +578,13 @@
[% ELSIF error == "zero_length_file" %]
[% title = "File Is Empty" %]
- The file you are trying to attach is empty!
+ The file you are trying to attach is empty!
[% ELSE %]
- [%# Cope with legacy calling convention, where "error" was the string
- # to print.
- #%]
-
- [% error %]
+ [% title = "Error string not found" %]
+ The user error string [% error FILTER html %]
was not found.
+ Please send email to [% Param("maintainer") %] describing the steps taken
+ to obtain this message.
[% END %]
[% END %]
--
cgit v1.2.3-24-g4f1b