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 --- CGI.pl | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index 4b7269358..c1b8aca11 100644 --- a/CGI.pl +++ b/CGI.pl @@ -50,20 +50,7 @@ sub CGI_pl_sillyness { require 'globals.pl'; -use vars qw($template $vars); - -sub PutHeader { - ($vars->{'title'}, $vars->{'h1'}, $vars->{'h2'}) = (@_); - - $::template->process("global/header.html.tmpl", $::vars) - || ThrowTemplateError($::template->error()); - $vars->{'header_done'} = 1; -} - -sub PutFooter { - $::template->process("global/footer.html.tmpl", $::vars) - || ThrowTemplateError($::template->error()); -} +use vars qw($vars); ############# Live code below here (that is, not subroutine defs) ############# -- cgit v1.2.3-24-g4f1b