diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 021783a75..cba448112 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -518,6 +518,9 @@ sub error_mode { if (defined $newval) { $class->request_cache->{error_mode} = $newval; } + if ($class->template->in_process) { + return ERROR_MODE_DIE; + } return $class->request_cache->{error_mode} || (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE); } |