Fix notices
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 10 Apr 2004 10:02:16 +0000 (10:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 10 Apr 2004 10:02:16 +0000 (10:02 +0000)
includes/GlobalFunctions.php
includes/Metadata.php

index c64bce5..6942edf 100644 (file)
@@ -873,7 +873,7 @@ function wfAcceptToPrefs( $accept, $def = "*/*" ) {
        
        foreach( $parts as $part ) {
                # FIXME: doesn't deal with params like 'text/html; level=1'
-               list( $value, $qpart ) = explode( ";", $part );
+               @list( $value, $qpart ) = explode( ";", $part );
                if( !isset( $qpart ) ) {
                        $prefs[$value] = 1;
                } elseif( preg_match( '/q\s*=\s*(\d*\.\d+)/', $qpart, $match ) ) {
index b435284..2e396fa 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-define(RDF_TYPE_PREFS, "application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1");
+define("RDF_TYPE_PREFS", "application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1");
                         
 function wfDublinCoreRdf($article) {