46 $this->contentLanguage = $contentLanguage;
47 $this->namespaceInfo = $namespaceInfo;
48 $this->titleFactory = $titleFactory;
67 $this->namespaceInfo->exists( $foreignNs )
69 return $this->titleFactory->makeTitleSafe( $foreignNs, $foreignTitle->
getText() );
75 $targetNs = $this->contentLanguage->getNsIndex( $foreignTitle->
getNamespaceName() );
76 if ( $targetNs !==
false ) {
77 return $this->titleFactory->makeTitleSafe( $targetNs, $foreignTitle->
getText() );
81 return $this->titleFactory->makeTitleSafe( 0, $foreignTitle->
getFullText() );
86class_alias( NaiveImportTitleFactory::class,
'NaiveImportTitleFactory' );