X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=b0a79e8d5c967f89773b1207303a9272d9366758;hb=fc5d51f12936edb4c7d067e298b5ec3a7c09a8fa;hp=55b78acf532e15f7554970fb847fa36a85ed35aa;hpb=0a6d507ed0871dba1f9baa4cc22dfcac34b047dd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 55b78acf53..b0a79e8d5c 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1750,13 +1750,11 @@ function wfResetOutputBuffers( $resetGzipEncoding = true ) { // to avoid getting in some kind of infinite loop. break; } - if ( $resetGzipEncoding ) { - if ( $status['name'] == 'ob_gzhandler' ) { - // Reset the 'Content-Encoding' field set by this handler - // so we can start fresh. - header_remove( 'Content-Encoding' ); - break; - } + if ( $resetGzipEncoding && $status['name'] == 'ob_gzhandler' ) { + // Reset the 'Content-Encoding' field set by this handler + // so we can start fresh. + header_remove( 'Content-Encoding' ); + break; } } } @@ -2610,22 +2608,6 @@ function wfWikiID() { } } -/** - * Split a wiki ID into DB name and table prefix - * - * @param string $wiki - * - * @return array - * @deprecated 1.32 - */ -function wfSplitWikiID( $wiki ) { - $bits = explode( '-', $wiki, 2 ); - if ( count( $bits ) < 2 ) { - $bits[] = ''; - } - return $bits; -} - /** * Get a Database object. *