From: Aryeh Gregor Date: Mon, 26 Mar 2007 23:50:19 +0000 (+0000) Subject: Don't mess with system variables, sry brion X-Git-Tag: 1.31.0-rc.0~53593 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=846d6778adeca5000a12ba1d219bf03904cb27b9;p=lhc%2Fweb%2Fwiklou.git Don't mess with system variables, sry brion --- diff --git a/includes/Metadata.php b/includes/Metadata.php index 9964a3d3aa..24522cf457 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -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));