# 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'" );
+ } elseif( $title->isExternal() ) {
+ $this->notice( wfMessage( 'import-error-interwiki', $title->getText() )->text() );
+ return false;
+ } elseif( !$title->canExist() ) {
+ $this->notice( wfMessage( 'import-error-special', $title->getText() )->text() );
return false;
} elseif( !$title->userCan( 'edit' ) && !$wgCommandLineMode ) {
# Do not import if the importing wiki user cannot edit this page
'import-invalid-interwiki' => 'Cannot import from the specified wiki.',
'import-error-edit' => 'Page "$1" is not imported because you are not allowed to edit it.',
'import-error-create' => 'Page "$1" is not imported because you are not allowed to create it.',
+'import-error-interwiki' => 'Page "$1" is not imported because its name is reserved for external linking (interwiki).',
+'import-error-special' => 'Page "$1" is not imported because it belongs to a special namespace that does not allow pages.',
# Import log
'importlogpage' => 'Import log',
'import-invalid-interwiki',
'import-error-edit',
'import-error-create',
+ 'import-error-interwiki',
+ 'import-error-special',
),
'importlog' => array(
'importlogpage',