From 9500ea0126044d372fbd311966bfa077f9d135fe Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 5 May 2010 19:14:04 -0700 Subject: Bug 562551: Allow template-only extensions to work r=mkanat, a=mkanat (module owner) --- Bugzilla/Install/Util.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm index 7bafa9330..7779f6bda 100644 --- a/Bugzilla/Install/Util.pm +++ b/Bugzilla/Install/Util.pm @@ -418,6 +418,18 @@ sub _template_base_directories { } } + # Extensions may also contain *only* templates, in which case they + # won't show up in extension_requirement_packages. + foreach my $path (_extension_paths()) { + next if !-d $path; + if (!-e "$path/Extension.pm" and !-e "$path/Config.pm" + and -d "$path/template") + { + push(@template_dirs, "$path/template"); + } + } + + push(@template_dirs, bz_locations()->{'templatedir'}); return \@template_dirs; } -- cgit v1.2.3-24-g4f1b