diff options
author | mkanat%bugzilla.org <> | 2006-07-04 06:42:45 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-04 06:42:45 +0200 |
commit | d15c41c6916aa127a3099a09f592b05d418189b1 (patch) | |
tree | c7c4df5cf9fb253f720f275527711ae24503595c /Bugzilla/Template.pm | |
parent | b1f4cf8bdc4b49c02ebebbee2553202bc46ab720 (diff) | |
download | bugzilla-d15c41c6916aa127a3099a09f592b05d418189b1.tar.gz bugzilla-d15c41c6916aa127a3099a09f592b05d418189b1.tar.xz |
Bug 338375: Use Bugzilla->params everywhere instead of Param().
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 65d937510..6094d6499 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -35,7 +35,6 @@ package Bugzilla::Template; use strict; use Bugzilla::Constants; -use Bugzilla::Config; use Bugzilla::Util; use Bugzilla::User; use Bugzilla::Error; @@ -771,7 +770,7 @@ sub create { # Default variables for all templates VARIABLES => { # Function for retrieving global parameters. - 'Param' => \&Bugzilla::Config::Param, + 'Param' => sub { return Bugzilla->params->{$_[0]}; }, # Function to create date strings 'time2str' => \&Date::Format::time2str, |