r36335 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36334‎ | r36335 | r36336 >
Date:14:25, 16 June 2008
Author:jojo
Status:old
Tags:
Comment:
call $wgOut->disable() for direct PDF stream
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -573,10 +573,11 @@
574574 // Cancel output buffering and gzipping if set
575575 wfResetOutputBuffers();
576576
577 - header("Content-type: application/pdf");
578 - header( "Content-Disposition: inline;filename=mw.pdf" );
 577+ header( 'Content-type: application/pdf');
 578+ header( 'Content-Disposition: inline;filename=mw.pdf' );
579579 header( 'Content-Length: ' . strlen( $response ) );
580580 print $response;
 581+ $wgOut->disable();
581582 }
582583
583584 function generatePDF() {

Status & tagging log