]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 257593: new charts were requiring you to log in every time a new dataset was...
authorjustdave%bugzilla.org <>
Thu, 16 Sep 2004 02:46:13 +0000 (02:46 +0000)
committerjustdave%bugzilla.org <>
Thu, 16 Sep 2004 02:46:13 +0000 (02:46 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>
r=kiko,gerv, a=justdave

chart.cgi

index d3f6f5ccc1d91fe077a9a58dd2a3ae0c4eaff0e2..4bab17701a2b8842297a05e4add683b6f7969a54 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -140,7 +140,7 @@ elsif ($action eq "create") {
 
     $vars->{'series'} = $series;
 
-    print "Content-Type: text/html\n\n";
+    print $cgi->header();
     $template->process("global/message.html.tmpl", $vars)
       || ThrowTemplateError($template->error());
 }
@@ -251,7 +251,7 @@ sub edit {
     $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());
 }
@@ -266,11 +266,11 @@ sub plot {
 
     # 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());
 }
@@ -287,7 +287,7 @@ sub wrap {
                 "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());
 }
@@ -304,7 +304,7 @@ sub view {
     $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.