summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install/Util.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-20 21:00:33 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-20 21:00:33 +0100
commit1237c19f93f456dbf75613538d5ac368b99d2af2 (patch)
tree9e72113adcd20e587b58e65615aec2a36e768443 /Bugzilla/Install/Util.pm
parent70a3ca1899e3310a67d20cf8cb7245d7fab5c5f1 (diff)
downloadbugzilla-1237c19f93f456dbf75613538d5ac368b99d2af2.tar.gz
bugzilla-1237c19f93f456dbf75613538d5ac368b99d2af2.tar.xz
Bug 531577: Fix the paths that single-file extensions (like extensions/Foo.pm)
look for their tempaltes and libraries in. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install/Util.pm')
-rw-r--r--Bugzilla/Install/Util.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm
index 1c6d5c4ee..99aacb3e7 100644
--- a/Bugzilla/Install/Util.pm
+++ b/Bugzilla/Install/Util.pm
@@ -196,6 +196,9 @@ sub extension_template_directory {
my $extension = shift;
my $class = ref($extension) || $extension;
my $base_dir = extension_package_directory($class);
+ if ($base_dir eq bz_locations->{'extensionsdir'}) {
+ return bz_locations->{'templatedir'};
+ }
return "$base_dir/template";
}