Skip to content

Commit

Permalink
Fixed issue where png logo crashes statistics pdf output
Browse files Browse the repository at this point in the history
dev: changed to transparent gif
  • Loading branch information
mennodekker committed Jan 11, 2013
1 parent d7840f7 commit c98b760
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -2755,9 +2755,8 @@ function generate_statistics($surveyid, $summary, $usegraph = 0, $outputType = '
$this->pdf->setFooterFont(Array($pdfdefaultfont, '', PDF_FONT_SIZE_DATA));

// set default header data
$headerlogo = 'statistics.png';
// when png crashes, try uncommenting next line
//$headerlogo = '';
// Since png crashes some servers (and we can not try/catch that) we use .gif (or .jpg) instead
$headerlogo = 'statistics.gif';
$this->pdf->SetHeaderData($headerlogo, 10, $statlang->gT("Quick statistics",'unescaped') , $statlang->gT("Survey")." ".$surveyid." '".flattenText($surveyInfo['surveyls_title'],false,true,'UTF-8')."'");
$this->pdf->SetFont($pdfdefaultfont, '', $pdffontsize);

Expand Down
Binary file added styles/blobblueish/images/statistics.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/gartergrey/images/statistics.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/gringegreen/images/statistics.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c98b760

Please sign in to comment.