32 $this->contentLanguage = $contentLanguage;
33 $this->namespaceInfo = $namespaceInfo;
34 $this->titleFactory = $titleFactory;
53 $this->namespaceInfo->exists( $foreignNs )
55 return $this->titleFactory->makeTitleSafe( $foreignNs, $foreignTitle->
getText() );
61 $targetNs = $this->contentLanguage->getNsIndex( $foreignTitle->
getNamespaceName() );
62 if ( $targetNs !==
false ) {
63 return $this->titleFactory->makeTitleSafe( $targetNs, $foreignTitle->
getText() );
67 return $this->titleFactory->makeTitleSafe( 0, $foreignTitle->
getFullText() );
72class_alias( NaiveImportTitleFactory::class,
'NaiveImportTitleFactory' );