Use the variable I introduced, maybe?
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 27 Mar 2007 02:50:23 +0000 (02:50 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 27 Mar 2007 02:50:23 +0000 (02:50 +0000)
includes/Metadata.php

index 24522cf..0cb9ca3 100644 (file)
@@ -75,7 +75,7 @@ function rdfSetup() {
 
        $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : '';
 
-       $rdftype = wfNegotiateType(wfAcceptToPrefs($_SERVER['HTTP_ACCEPT']), wfAcceptToPrefs(RDF_TYPE_PREFS));
+       $rdftype = wfNegotiateType(wfAcceptToPrefs($httpaccept, wfAcceptToPrefs(RDF_TYPE_PREFS));
 
        if (!$rdftype) {
                wfHttpError(406, "Not Acceptable", wfMsg("notacceptable"));