summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-09-21 00:19:47 +0200
committerDylan William Hardison <dylan@hardison.net>2016-09-21 00:19:47 +0200
commit2f4472f335e6baea7ac5b1d12c9bfa50bd58c1a2 (patch)
treefb5a07a6fe6cb334f9d1ce37b8d5223dd23e7fc5 /Bugzilla/Template.pm
parentaf8851906389ff3bf5359409b474d2975827e755 (diff)
downloadbugzilla-2f4472f335e6baea7ac5b1d12c9bfa50bd58c1a2.tar.gz
bugzilla-2f4472f335e6baea7ac5b1d12c9bfa50bd58c1a2.tar.xz
Bug 1263244 - Throw*Error inside templates should always use die(), as if error_mode is ERROR_MODE_DIE
r=dkl,a=dylan
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm3
1 files changed, 3 insertions, 0 deletions
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;