* (bug 14709) Fix login success message formatting when using cookie check
[lhc/web/wiklou.git] / includes / Metadata.php
index 24522cf..a543c73 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /**
- * TODO: Perhaps make this file into a Metadata class, with static methods (declared 
+ * TODO: Perhaps make this file into a Metadata class, with static methods (declared
  * as private where indicated), to move these functions out of the global namespace?
  */
 define('RDF_TYPE_PREFS', "application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1");
@@ -73,9 +73,9 @@ function wfCreativeCommonsRdf($article) {
 function rdfSetup() {
        global $wgOut, $_SERVER;
 
-       $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : '';
+       $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : null;
 
-       $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"));
@@ -364,5 +364,3 @@ function getKnownLicenses() {
 
        return $knownLicenses;
 }
-
-?>