From 764a1fa6d114eee04b04ec1419052e3e4caa02d2 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 22 Mar 2011 18:13:03 -0400 Subject: Bug 643904 - Bugzilla::Extension should export a web_dir attribute to get full path to the extension's web directory r/a=mkanat --- Bugzilla/Extension.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Extension.pm') diff --git a/Bugzilla/Extension.pm b/Bugzilla/Extension.pm index 857d0d75b..dbfee0971 100644 --- a/Bugzilla/Extension.pm +++ b/Bugzilla/Extension.pm @@ -26,7 +26,7 @@ use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::Install::Util qw( extension_code_files extension_template_directory - extension_package_directory); + extension_package_directory extension_web_directory); use File::Basename; use File::Spec; @@ -214,6 +214,7 @@ sub lib_dir { sub template_dir { return extension_template_directory(@_); } sub package_dir { return extension_package_directory(@_); } +sub web_dir { return extension_web_directory(@_); } ###################### # Helper Subroutines # @@ -786,6 +787,15 @@ This defaults to the C