Merge "(bug 47070) check content model namespace on import."
[lhc/web/wiklou.git] / includes / Import.php
index 2770e47..e447e47 100644 (file)
@@ -1729,7 +1729,7 @@ class ImportStreamSource {
                        return Status::newFatal( 'import-noarticle' );
                }
                $link = Title::newFromText( "$interwiki:Special:Export/$page" );
-               if ( is_null( $link ) || $link->getInterwiki() == '' ) {
+               if ( is_null( $link ) || !$link->isExternal() ) {
                        return Status::newFatal( 'importbadinterwiki' );
                } else {
                        $params = array();