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 --- sanitycheck.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sanitycheck.cgi') diff --git a/sanitycheck.cgi b/sanitycheck.cgi index c091e1041..00a7ef0c5 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -75,6 +75,7 @@ Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; my $dbh = Bugzilla->dbh; +my $template = Bugzilla->template; # Make sure the user is authorized to access sanitycheck.cgi. Access # is restricted to logged-in users who have "editbugs" privileges, @@ -92,7 +93,7 @@ print $cgi->header(); my @row; -PutHeader("Bugzilla Sanity Check"); +$template->put_header("Bugzilla Sanity Check"); ########################################################################### # Fix vote cache @@ -272,7 +273,7 @@ if (defined $cgi->param('rescanallBugMail')) { Status("Unsent mail has been sent."); } - PutFooter(); + $template->put_footer(); exit; } @@ -887,4 +888,4 @@ if (@badbugs > 0) { ########################################################################### Status("Sanity check completed."); -PutFooter(); +$template->put_footer(); -- cgit v1.2.3-24-g4f1b