Don't mess with system variables, sry brion
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 26 Mar 2007 23:50:19 +0000 (23:50 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 26 Mar 2007 23:50:19 +0000 (23:50 +0000)
includes/Metadata.php

index 9964a3d..24522cf 100644 (file)
@@ -73,9 +73,7 @@ function wfCreativeCommonsRdf($article) {
 function rdfSetup() {
        global $wgOut, $_SERVER;
 
-       if( !isset($_SERVER['HTTP_ACCEPT']) ) {
-               $_SERVER['HTTP_ACCEPT'] = '';
-       }
+       $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : '';
 
        $rdftype = wfNegotiateType(wfAcceptToPrefs($_SERVER['HTTP_ACCEPT']), wfAcceptToPrefs(RDF_TYPE_PREFS));