From 44de29d04d1ca7e3b047b2a847508dc949c29038 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 25 Oct 2005 06:11:55 +0000 Subject: Bug 312157: Remove $::template and $::vars from globals.pl - Patch by Olav Vitters r=LpSolit a=justdave --- Bugzilla/Template.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index b1646dbf0..4cbca29bd 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -44,7 +44,6 @@ use MIME::Base64; use Date::Format (); use base qw(Template); -use vars qw($vars); # Convert the constants in the Bugzilla::Constants module into a hash we can # pass to the template object for reflection into its "constants" namespace @@ -165,6 +164,7 @@ sub getTemplateIncludePath { sub put_header { my $self = shift; + my $vars = {}; ($vars->{'title'}, $vars->{'h1'}, $vars->{'h2'}) = (@_); $self->process("global/header.html.tmpl", $vars) @@ -174,7 +174,7 @@ sub put_header { sub put_footer { my $self = shift; - $self->process("global/footer.html.tmpl", $vars) + $self->process("global/footer.html.tmpl") || ThrowTemplateError($self->error()); } -- cgit v1.2.3-24-g4f1b