From e7d2b86c2765c3a8e853526683ceacdb260a7996 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 22 Jul 2005 12:13:36 +0000 Subject: Bug 301507: Move PutHeader and PutFooter into Template.pm - Patch by Frédéric Buclin r/a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doeditparams.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doeditparams.cgi') diff --git a/doeditparams.cgi b/doeditparams.cgi index 028f28a60..431aa91c2 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -35,6 +35,7 @@ require "CGI.pl"; Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; +my $template = Bugzilla->template; print $cgi->header(); @@ -43,7 +44,7 @@ UserInGroup("tweakparams") action => "modify", object => "parameters"}); -PutHeader("Saving new parameters"); +$template->put_header("Saving new parameters"); my $howto = ""; @@ -90,7 +91,7 @@ foreach my $i (GetParamList()) { print "New value for " . html_quote($name) . " is invalid: $ok

\n"; print "Please hit Back and try again.\n"; - PutFooter(); + $template->put_footer(); exit; } } @@ -115,4 +116,4 @@ print $howto; print "Edit the params some more.

\n"; print "Go back to the query page.\n"; -PutFooter(); +$template->put_footer(); -- cgit v1.2.3-24-g4f1b