Bug 166698 - clean up the error system, which was confused and broken. Patch by gerv; r=bbaetz.
git-svn-id: svn://10.0.0.236/trunk@128867 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -39,19 +39,15 @@ ConnectToDatabase();
|
||||
|
||||
quietly_check_login();
|
||||
|
||||
print "Content-Type: text/html\n\n";
|
||||
|
||||
if (defined $::FORM{'id'}) {
|
||||
$::FORM{'id'} =~ s/[^\w-]//g;
|
||||
|
||||
if ($pages{$::FORM{'id'}}) {
|
||||
print "Content-Type: text/html\n\n";
|
||||
$template->process($pages{$::FORM{'id'}}, $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$vars->{'message'} = "page_not_found";
|
||||
|
||||
$template->process("global/message.html.tmpl", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
ThrowUserError("page_not_found");
|
||||
|
||||
Reference in New Issue
Block a user