X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputHandler.php;h=1d1a193cbed6d2caea80715a68810ff80fd48b4b;hb=2c565dc8e74f078b01d842c98b6192c36c8edace;hp=16c37841c86983468b49a0b27b9903ef1ead67a0;hpb=4660ce079ca78a66e4ec7386481868a52ecebda5;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; }