Index: branches/5.2.x/units/reports/reports_event_handler.php =================================================================== diff -u -N -r15149 -r15172 --- branches/5.2.x/units/reports/reports_event_handler.php (.../reports_event_handler.php) (revision 15149) +++ branches/5.2.x/units/reports/reports_event_handler.php (.../reports_event_handler.php) (revision 15172) @@ -1,6 +1,6 @@ Application->recallObject('ChartHelper'); - header("Content-type: image/png"); + $this->Application->setContentType('image/png'); $width = $event->getEventParam('width'); if (!$width) { @@ -693,7 +693,7 @@ { $ChartHelper = $this->Application->recallObject('ChartHelper'); - header("Content-type: image/png"); + $this->Application->setContentType('image/png'); $width = $this->Application->GetVar('width'); if ($width == 0)