summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template/Plugin
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-17 06:27:10 +0100
committermkanat%bugzilla.org <>2009-12-17 06:27:10 +0100
commit9d6f961beaecf07741c2221146ed2c17e9c07594 (patch)
treebce3b8939f7092176f173e0da770e31c7784632c /Bugzilla/Template/Plugin
parent4f2eccc20de8b4ba8df9030ce07c836d2bae515b (diff)
downloadbugzilla-9d6f961beaecf07741c2221146ed2c17e9c07594.tar.gz
bugzilla-9d6f961beaecf07741c2221146ed2c17e9c07594.tar.xz
Bug 525606: Make the template_before_process hook run whenever a template is loaded (including PROCESS and INCLUDE), not just when $template->process is called.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Template/Plugin')
-rw-r--r--Bugzilla/Template/Plugin/Hook.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm
index 9c292d726..e993060dd 100644
--- a/Bugzilla/Template/Plugin/Hook.pm
+++ b/Bugzilla/Template/Plugin/Hook.pm
@@ -68,6 +68,7 @@ sub process {
# process() accepts an arrayref of templates, so we just pass the whole
# arrayref.
+ $context->{bz_in_hook} = 1; # See Bugzilla::Template::Context
return $context->process($cache->{"${lang}__$extension_template"});
}