diff options
author | Roan Kattouw <catrope@users.mediawiki.org> | 2010-12-06 20:57:42 +0000 |
---|---|---|
committer | Roan Kattouw <catrope@users.mediawiki.org> | 2010-12-06 20:57:42 +0000 |
commit | 195217ba89505f4b49b3f5fd6a228bf76a839d70 (patch) | |
tree | 3753da46d1d9b1c477adb78df162f3ccfff739cc /includes/WebStart.php | |
parent | ba8fe0364f11387108a8f30d6ff4ca81b983ad57 (diff) | |
download | mediawikicore-195217ba89505f4b49b3f5fd6a228bf76a839d70.tar.gz mediawikicore-195217ba89505f4b49b3f5fd6a228bf76a839d70.zip |
(bug 26130) Revert changes to WebStart.php in r72349, which turn out to have been misguided. This should fix double-gzip issues
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/77908
Diffstat (limited to 'includes/WebStart.php')
-rw-r--r-- | includes/WebStart.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/WebStart.php b/includes/WebStart.php index f05d563066a8..fede558acb33 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -126,15 +126,10 @@ wfProfileOut( 'WebStart.php-conf' ); wfProfileIn( 'WebStart.php-ob_start' ); # Initialise output buffering - # Check that there is no previous output or previously set up buffers, because # that would cause us to potentially mix gzip and non-gzip output, creating a # big mess. -# In older versions of PHP ob_get_level() returns 0 if there is no buffering or -# previous output, in newer versions the default output buffer is always set up -# and ob_get_level() returns 1. In this case we check that the buffer is empty. -# FIXME: Check that this is the right way to handle this -if ( !defined( 'MW_NO_OUTPUT_BUFFER' ) && ( ob_get_level() == 0 || ( ob_get_level() == 1 && ob_get_contents() === '' ) ) ) { +if ( !defined( 'MW_NO_OUTPUT_BUFFER' ) && ob_get_level() == 0 ) { require_once( "$IP/includes/OutputHandler.php" ); ob_start( 'wfOutputHandler' ); } |