$vars->{'series'} = $series;
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
$template->process("global/message.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
}
$vars->{'creator'} = new Bugzilla::User($series->{'creator'});
$vars->{'default'} = $series;
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
$template->process("reports/edit-series.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
}
# Debugging PNGs is a pain; we need to be able to see the error messages
if ($cgi->param('debug')) {
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
$vars->{'chart'}->dump();
}
- print "Content-Type: $format->{'ctype'}\n\n";
+ print $cgi->header($format->{'ctype'});
$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());
}
"action", "action-wrap", "ctype", "format", "width", "height",
"Bugzilla_login", "Bugzilla_password");
- print "Content-Type:text/html\n\n";
+ print $cgi->header();
$template->process("reports/chart.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
}
$vars->{'chart'} = $chart;
$vars->{'category'} = Bugzilla::Chart::getVisibleSeries();
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
# If we have having problems with bad data, we can set debug=1 to dump
# the data structure.