From 1237c19f93f456dbf75613538d5ac368b99d2af2 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sat, 20 Feb 2010 12:00:33 -0800 Subject: 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) --- Bugzilla/Install/Util.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Install/Util.pm') 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"; } -- cgit v1.2.3-24-g4f1b