diff options
author | lpsolit%gmail.com <> | 2005-10-25 08:11:55 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-25 08:11:55 +0200 |
commit | 44de29d04d1ca7e3b047b2a847508dc949c29038 (patch) | |
tree | 934c0ccce39c238b3bf6a0337014e6f1fde9918b /Bugzilla/Template.pm | |
parent | 46aba0e761e99db24b5de10f13bbc108fdc982a4 (diff) | |
download | bugzilla-44de29d04d1ca7e3b047b2a847508dc949c29038.tar.gz bugzilla-44de29d04d1ca7e3b047b2a847508dc949c29038.tar.xz |
Bug 312157: Remove $::template and $::vars from globals.pl - Patch by Olav Vitters <bugzilla-mozilla@bkor.dhs.org> r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } |