diff options
author | lpsolit%gmail.com <> | 2005-10-25 06:11:55 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-25 06:11:55 +0000 |
commit | 44de29d04d1ca7e3b047b2a847508dc949c29038 (patch) | |
tree | 934c0ccce39c238b3bf6a0337014e6f1fde9918b /sidebar.cgi | |
parent | 46aba0e761e99db24b5de10f13bbc108fdc982a4 (diff) | |
download | bugs-44de29d04d1ca7e3b047b2a847508dc949c29038.tar bugs-44de29d04d1ca7e3b047b2a847508dc949c29038.tar.gz bugs-44de29d04d1ca7e3b047b2a847508dc949c29038.tar.bz2 bugs-44de29d04d1ca7e3b047b2a847508dc949c29038.tar.xz bugs-44de29d04d1ca7e3b047b2a847508dc949c29038.zip |
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 'sidebar.cgi')
-rwxr-xr-x | sidebar.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sidebar.cgi b/sidebar.cgi index 15506eba4..2f7743ebb 100755 --- a/sidebar.cgi +++ b/sidebar.cgi @@ -20,12 +20,10 @@ use strict; use lib "."; require "globals.pl"; -# Shut up "Used Only Once" errors -use vars qw($template $vars); - Bugzilla->login(); my $cgi = Bugzilla->cgi; +my $template = Bugzilla->template; ############################################################################### # Main Body Execution @@ -43,7 +41,7 @@ my $useragent = $ENV{HTTP_USER_AGENT}; if ($useragent =~ m:Mozilla/([1-9][0-9]*):i && $1 >= 5 && $useragent !~ m/compatible/i) { print $cgi->header("application/vnd.mozilla.xul+xml"); # Generate and return the XUL from the appropriate template. - $template->process("sidebar.xul.tmpl", $vars) + $template->process("sidebar.xul.tmpl") || ThrowTemplateError($template->error()); } else { ThrowUserError("sidebar_supports_mozilla_only"); |