summaryrefslogtreecommitdiffstats
path: root/page.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'page.cgi')
-rwxr-xr-xpage.cgi5
1 files changed, 2 insertions, 3 deletions
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 {