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 --- page.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'page.cgi') diff --git a/page.cgi b/page.cgi index 97f425ba2..b160cf021 100755 --- a/page.cgi +++ b/page.cgi @@ -36,11 +36,10 @@ use Bugzilla; require "globals.pl"; -use vars qw($template $vars); - Bugzilla->login(); my $cgi = Bugzilla->cgi; +my $template = Bugzilla->template; my $id = $cgi->param('id'); if ($id) { @@ -58,7 +57,7 @@ if ($id) { print $cgi->header($format->{'ctype'}); - $template->process("$format->{'template'}", $vars) + $template->process("$format->{'template'}") || ThrowTemplateError($template->error()); } else { -- cgit v1.2.3-24-g4f1b