diff options
| author | David Lawrence <dlawrence@mozilla.com> | 2011-03-22 18:13:03 -0400 |
|---|---|---|
| committer | David Lawrence <dlawrence@mozilla.com> | 2011-03-22 18:13:03 -0400 |
| commit | 764a1fa6d114eee04b04ec1419052e3e4caa02d2 (patch) | |
| tree | b25aaa41ea74b0d65f987a1d02003249eb7244bd /Bugzilla/Install | |
| parent | 17d2732fb8e8988291dde7cb31a8e5ce21206815 (diff) | |
| download | bugs-764a1fa6d114eee04b04ec1419052e3e4caa02d2.tar bugs-764a1fa6d114eee04b04ec1419052e3e4caa02d2.tar.gz bugs-764a1fa6d114eee04b04ec1419052e3e4caa02d2.tar.bz2 bugs-764a1fa6d114eee04b04ec1419052e3e4caa02d2.tar.xz bugs-764a1fa6d114eee04b04ec1419052e3e4caa02d2.zip | |
Bug 643904 - Bugzilla::Extension should export a web_dir attribute to get full path to the extension's web directory
r/a=mkanat
Diffstat (limited to 'Bugzilla/Install')
| -rw-r--r-- | Bugzilla/Install/Util.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm index c8d3d8eb4..a2371a0be 100644 --- a/Bugzilla/Install/Util.pm +++ b/Bugzilla/Install/Util.pm @@ -46,6 +46,7 @@ our @EXPORT_OK = qw( extension_package_directory extension_requirement_packages extension_template_directory + extension_web_directory indicate_progress install_string include_languages @@ -214,6 +215,14 @@ sub extension_template_directory { return "$base_dir/template"; } +# Used in this file and in Bugzilla::Extension. +sub extension_web_directory { + my $extension = shift; + my $class = ref($extension) || $extension; + my $base_dir = extension_package_directory($class); + return "$base_dir/web"; +} + # For extensions that are in the extensions/ dir, this both sets and fetches # the name of the directory that stores an extension's "stuff". We need this # when determining the template directory for extensions (or other things |
