summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install/Util.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-05-06 04:14:04 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-05-06 04:14:04 +0200
commit9500ea0126044d372fbd311966bfa077f9d135fe (patch)
treed3512d007a0fc0f5e73656e609bf9c59863a03cd /Bugzilla/Install/Util.pm
parent62efd548bbd87e4018cee195e6c74cd8a4e13d7b (diff)
downloadbugzilla-9500ea0126044d372fbd311966bfa077f9d135fe.tar.gz
bugzilla-9500ea0126044d372fbd311966bfa077f9d135fe.tar.xz
Bug 562551: Allow template-only extensions to work
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install/Util.pm')
-rw-r--r--Bugzilla/Install/Util.pm12
1 files changed, 12 insertions, 0 deletions
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;
}