diff options
Diffstat (limited to 'Bugzilla/Template/Plugin/Hook.pm')
-rw-r--r-- | Bugzilla/Template/Plugin/Hook.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm index d780170f8..1370f58e0 100644 --- a/Bugzilla/Template/Plugin/Hook.pm +++ b/Bugzilla/Template/Plugin/Hook.pm @@ -27,7 +27,7 @@ use strict; use base qw(Template::Plugin); use Bugzilla::Constants; -use Bugzilla::Install::Util qw(include_languages template_include_path); +use Bugzilla::Install::Util qw(template_include_path); use Bugzilla::Util; use Bugzilla::Error; @@ -97,9 +97,8 @@ sub _template_hook_include_path { my $language = $cache->{language} || ''; my $cache_key = "template_plugin_hook_include_path_$language"; $cache->{$cache_key} ||= template_include_path({ - use_languages => Bugzilla->languages, - only_language => $language, - hook => 1, + language => $language, + hook => 1, }); return $cache->{$cache_key}; } |