36 if ( !MediaWikiServices::getInstance()->getNamespaceInfo()->exists(
$ns ) ) {
37 throw new MWException(
"Namespace $ns doesn't exist on this wiki" );
51 return Title::makeTitleSafe( $this->ns, $foreignTitle->
getText() );
A simple, immutable structure to hold the title of a page on a foreign MediaWiki installation.
A class to convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local...
createTitleFromForeignTitle(ForeignTitle $foreignTitle)
Determines which local title best corresponds to the given foreign title.
Represents an object that can convert page titles on a foreign wiki (ForeignTitle objects) into page ...