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