From: David Lawrence Date: Tue, 22 Mar 2011 22:13:03 +0000 (-0400) Subject: Bug 643904 - Bugzilla::Extension should export a web_dir attribute to get full path... X-Git-Tag: bugzilla-4.1.2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=764a1fa6d114eee04b04ec1419052e3e4caa02d2;p=thirdparty%2Fbugzilla.git Bug 643904 - Bugzilla::Extension should export a web_dir attribute to get full path to the extension's web directory r/a=mkanat --- diff --git a/Bugzilla/Extension.pm b/Bugzilla/Extension.pm index 857d0d75b8..dbfee09713 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