From 9d6f961beaecf07741c2221146ed2c17e9c07594 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 17 Dec 2009 05:27:10 +0000 Subject: 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 r=dkl, a=mkanat --- Bugzilla/Template/Plugin/Hook.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/Template/Plugin/Hook.pm') 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"}); } -- cgit v1.2.3-24-g4f1b