From 2f4472f335e6baea7ac5b1d12c9bfa50bd58c1a2 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 20 Sep 2016 18:19:47 -0400 Subject: Bug 1263244 - Throw*Error inside templates should always use die(), as if error_mode is ERROR_MODE_DIE r=dkl,a=dylan --- Bugzilla/Template.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 40079339a..8871d810d 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -698,12 +698,15 @@ $Template::Stash::SCALAR_OPS->{ truncate } = ############################################################################### +our $is_processing = 0; + sub process { my $self = shift; # All of this current_langs stuff allows template_inner to correctly # determine what-language Template object it should instantiate. my $current_langs = Bugzilla->request_cache->{template_current_lang} ||= []; unshift(@$current_langs, $self->context->{bz_language}); + local $is_processing = 1; my $retval = $self->SUPER::process(@_); shift @$current_langs; return $retval; -- cgit v1.2.3-24-g4f1b