summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-11-15 15:28:58 +0100
committerDylan William Hardison <dylan@hardison.net>2016-11-15 15:28:58 +0100
commit9b24c23b18f6fe5632b174896b36fac84057f5f7 (patch)
tree9a26386c90384b75d6b8eebab1f209ffb7759d35 /Bugzilla/Template.pm
parent874e96c2423c772564c9dc63254baa99e86f270b (diff)
downloadbugzilla-9b24c23b18f6fe5632b174896b36fac84057f5f7.tar.gz
bugzilla-9b24c23b18f6fe5632b174896b36fac84057f5f7.tar.xz
Revert "Bug 1314201 - ThrowUserError and ThrowCodeError should print headers if headers have not already been printed"
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm13
1 files changed, 1 insertions, 12 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index dec9885c2..eb1496fca 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -653,21 +653,10 @@ our $is_processing = 0;
sub process {
my $self = shift;
- my ($template, undef, $output) = @_;
-
- if (!$output && Bugzilla->usage_mode == USAGE_MODE_BROWSER) {
- # if $output is not passed, this will print.
- my $cgi = Bugzilla->cgi;
- unless ($cgi->sent_headers) {
- warn "attempted to process $template before sending headers!";
- print $cgi->header();
- }
- }
-
# 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};
+ unshift(@$current_langs, $self->context->{bz_language});
local $is_processing = 1;
my $retval = $self->SUPER::process(@_);
shift @$current_langs;