Fix bug 26570 (user CSS preview broken) and bug 26555 (styles added with $out->addSty...
[lhc/web/wiklou.git] / 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 );