summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-22 14:13:36 +0200
committerlpsolit%gmail.com <>2005-07-22 14:13:36 +0200
commite7d2b86c2765c3a8e853526683ceacdb260a7996 (patch)
tree90fc70fd199e7bfc5ae5656ceadafbe6c8afe4d7 /CGI.pl
parentd0303ab3ecb54eef2ed1b5e55839eada16748416 (diff)
downloadbugzilla-e7d2b86c2765c3a8e853526683ceacdb260a7996.tar.gz
bugzilla-e7d2b86c2765c3a8e853526683ceacdb260a7996.tar.xz
Bug 301507: Move PutHeader and PutFooter into Template.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl15
1 files changed, 1 insertions, 14 deletions
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) #############