Bug 162066 - Fix callers of ThrowCodeError to use messages in code-error.html.tmpl. Patch by gerv; r=bbaetz.

git-svn-id: svn://10.0.0.236/trunk@127354 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2002-08-15 06:43:47 +00:00
parent 0c1407d0c4
commit d93355f3ed
4 changed files with 29 additions and 16 deletions

View File

@@ -805,9 +805,9 @@ SWITCH: for ($::FORM{'knob'}) {
last SWITCH;
};
# default
my $escaped_knob = html_quote($::FORM{'knob'});
ThrowCodeError("Unknown action $escaped_knob!\n");
$vars->{'action'} = $::FORM{'knob'};
ThrowCodeError("unknown_action");
}