X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2FOutputHandler.php;h=1d1a193cbed6d2caea80715a68810ff80fd48b4b;hb=02e9220745bc38b79f3ebc86df9d3b351dfeb042;hp=16c37841c86983468b49a0b27b9903ef1ead67a0;hpb=733993fa54ecd9d55e52c88ed44be343b9a8abed;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; }