diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-12-28 02:34:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 02:34:35 +0100 |
commit | 23fb54b4a9cdedb66854b5a586754d3489641590 (patch) | |
tree | a573ee6503a8c43cfd0bbfbec6a443a6abfd665c /Bugzilla/Template.pm | |
parent | 253c35c0e0322138176abbfb3825dd85dfeece5c (diff) | |
download | bugzilla-23fb54b4a9cdedb66854b5a586754d3489641590.tar.gz bugzilla-23fb54b4a9cdedb66854b5a586754d3489641590.tar.xz |
Bug 1427230 - Avoid loading CGI::Carp, which makes templates slow.
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 90d9f59f7..f93b025bf 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -529,6 +529,9 @@ sub process { my $current_langs = Bugzilla->request_cache->{template_current_lang} ||= []; unshift(@$current_langs, $self->context->{bz_language}); local $is_processing = 1; + local $SIG{__DIE__}; + delete $SIG{__DIE__}; + warn "WARNING: CGI::Carp makes templates slow" if $INC{"CGI/Carp.pm"}; my $retval = $self->SUPER::process(@_); shift @$current_langs; return $retval; |