diff options
author | mkanat%bugzilla.org <> | 2009-11-25 04:37:08 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-25 04:37:08 +0100 |
commit | 74060782dd67e3e960fac20c759bc025c91caece (patch) | |
tree | 357be5a889e555012298dcb8893b3bdf67214f90 /Bugzilla/Template.pm | |
parent | 0777ee56dd09a2a459074dccda9a8439632ba6e6 (diff) | |
download | bugzilla-74060782dd67e3e960fac20c759bc025c91caece.tar.gz bugzilla-74060782dd67e3e960fac20c759bc025c91caece.tar.xz |
Bug 530960: Put hooks into template/default/hook instead of template/hook
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index c3c7a9fac..f714f04d1 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -475,6 +475,14 @@ sub create { PRE_CHOMP => 1, TRIM => 1, + # Bugzilla::Template::Plugin::Hook uses the absolute (in mod_perl) + # or relative (in mod_cgi) paths of hook files to explicitly compile + # a specific file. Also, these paths may be absolute at any time + # if a packager has modified bz_locations() to contain absolute + # paths. + ABSOLUTE => 1, + RELATIVE => $ENV{MOD_PERL} ? 0 : 1, + COMPILE_DIR => bz_locations()->{'datadir'} . "/template", # Initialize templates (f.e. by loading plugins like Hook). |