From 02ce78bfc701dfaea5c8ba94927d6496d7f8f727 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 5 Sep 2002 14:28:28 +0000 Subject: Bug 166698 - clean up the error system, which was confused and broken. Patch by gerv; r=bbaetz. --- page.cgi | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'page.cgi') diff --git a/page.cgi b/page.cgi index cc26f93db..2fcf1b9b7 100755 --- a/page.cgi +++ b/page.cgi @@ -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"); -- cgit v1.2.3-24-g4f1b