From 74060782dd67e3e960fac20c759bc025c91caece Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 25 Nov 2009 03:37:08 +0000 Subject: Bug 530960: Put hooks into template/default/hook instead of template/hook Patch by Max Kanat-Alexander (module owner) a=mkanat --- Bugzilla/Template.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Bugzilla/Template.pm') 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). -- cgit v1.2.3-24-g4f1b