diff options
author | mkanat%bugzilla.org <> | 2006-06-29 23:49:55 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-06-29 23:49:55 +0000 |
commit | a0196b5d1ed38b7bf7f0783c1c865d6642f2e2b2 (patch) | |
tree | c69b87d1aba4ed1d77ec33abdaccafe249bd735b /Bugzilla/Template | |
parent | Bug 342114: Bugzilla.pm caches data in global variables (diff) | |
download | bugzilla-a0196b5d1ed38b7bf7f0783c1c865d6642f2e2b2.tar.gz bugzilla-a0196b5d1ed38b7bf7f0783c1c865d6642f2e2b2.tar.bz2 bugzilla-a0196b5d1ed38b7bf7f0783c1c865d6642f2e2b2.zip |
Bug 342121: Remove usage of Config qw(:locations) in favor of Constants::bz_locations()
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Template')
-rw-r--r-- | Bugzilla/Template/Plugin/Hook.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm index 7ff707fc1..c2e1626ef 100644 --- a/Bugzilla/Template/Plugin/Hook.pm +++ b/Bugzilla/Template/Plugin/Hook.pm @@ -26,6 +26,7 @@ package Bugzilla::Template::Plugin::Hook; use strict; use Bugzilla::Config; +use Bugzilla::Constants; use Bugzilla::Template; use Bugzilla::Util; use Bugzilla::Error; @@ -64,7 +65,7 @@ sub process { my $type = $2; # munge the filename to create the extension hook filename: my $extensiontemplate = $subpath.'/'.$templatename.'-'.$hook_name.'.'.$type.'.tmpl'; - my @extensions = glob($Bugzilla::Config::extensionsdir."/*"); + my @extensions = glob(bz_locations()->{'extensionsdir'} . "/*"); my @usedlanguages = getLanguages(); foreach my $extension (@extensions) { foreach my $language (@usedlanguages) { |