diff options
author | David Lawrence <dlawrence@mozilla.com> | 2011-04-01 05:38:47 +0200 |
---|---|---|
committer | David Lawrence <dlawrence@mozilla.com> | 2011-04-01 05:38:47 +0200 |
commit | 14151ea2f8fb33d4336afa161a0e8b8bed6e5daa (patch) | |
tree | cfc8220d3a81b92c69b17bb8543f1a024e1e4f94 /Bugzilla/Install | |
parent | 827893640965d055b40193c825dad3555acb4eb3 (diff) | |
download | bugzilla-14151ea2f8fb33d4336afa161a0e8b8bed6e5daa.tar.gz bugzilla-14151ea2f8fb33d4336afa161a0e8b8bed6e5daa.tar.xz |
Bug 644334 - Add hook to Bugzilla::Install::Filesystem to allow extensions to create files/directories/htaccess
r/a=mkanat
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r-- | Bugzilla/Install/Filesystem.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index 2845728bc..15106dab9 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -32,6 +32,7 @@ use Bugzilla::Error; use Bugzilla::Install::Localconfig; use Bugzilla::Install::Util qw(install_string); use Bugzilla::Util; +use Bugzilla::Hook; use File::Find; use File::Path; @@ -364,6 +365,15 @@ EOT }, ); + Bugzilla::Hook::process('install_filesystem', { + files => \%files, + create_dirs => \%create_dirs, + non_recurse_dirs => \%non_recurse_dirs, + recurse_dirs => \%recurse_dirs, + create_files => \%create_files, + htaccess => \%htaccess, + }); + my %all_files = (%create_files, %htaccess, %index_html, %files); my %all_dirs = (%create_dirs, %non_recurse_dirs); |