Actually skip invalid titles in XML dumps, don't just say you're going to. Avoids...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 21 Dec 2010 02:57:33 +0000 (02:57 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 21 Dec 2010 02:57:33 +0000 (02:57 +0000)
includes/ImportXMLReader.php

index 790d1a0..e221eac 100644 (file)
@@ -619,9 +619,10 @@ class WikiImporter {
                if( is_null( $title ) ) {
                        // Invalid page title? Ignore the page
                        $this->notice( "Skipping invalid page title '$workTitle'" );
+                       return false;
                } elseif( $title->getInterwiki() != '' ) {
                        $this->notice( "Skipping interwiki page title '$workTitle'" );
-                       $title = null;
+                       return false;
                }
 
                return array( $origTitle, $title );