X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputHandler.php;h=1d1a193cbed6d2caea80715a68810ff80fd48b4b;hb=748c5eae2fd5d897c94c48771161c259941a7488;hp=16c37841c86983468b49a0b27b9903ef1ead67a0;hpb=5c357bf6c28eb0c3462374e088a6583eecbd2953;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputHandler.php b/includes/OutputHandler.php index 16c37841c8..1d1a193cbe 100644 --- a/includes/OutputHandler.php +++ b/includes/OutputHandler.php @@ -62,7 +62,7 @@ class OutputHandler { /// @todo FIXME: this sort of dupes some code in WebRequest::getRequestUrl() if ( isset( $_SERVER['REQUEST_URI'] ) ) { // Strip the query string... - list( $path ) = explode( '?', $_SERVER['REQUEST_URI'], 2 ); + $path = explode( '?', $_SERVER['REQUEST_URI'], 2 )[0]; } elseif ( isset( $_SERVER['SCRIPT_NAME'] ) ) { // Probably IIS. QUERY_STRING appears separately. $path = $_SERVER['SCRIPT_NAME']; @@ -123,10 +123,6 @@ class OutputHandler { } if ( !$foundVary ) { header( 'Vary: Accept-Encoding' ); - global $wgUseKeyHeader; - if ( $wgUseKeyHeader ) { - header( 'Key: Accept-Encoding;match=gzip' ); - } } return $s; }