if ( $resolveRedirects ) {
$this->mPendingRedirectIDs = array();
}
-
+
$this->mConvertTitles = $convertTitles;
$this->mConvertedTitles = array();
public function getNormalizedTitles() {
return $this->mNormalizedTitles;
}
-
+
/**
* Get a list of title conversions - maps a title to its converted
* version.
* @return array raw_prefixed_title (string) => prefixed_title (string)
- */
+ */
public function getConvertedTitles() {
return $this->mConvertedTitles;
}
public function getMissingRevisionIDs() {
return $this->mMissingRevIDs;
}
-
+
/**
* Get the list of titles with negative namespace
* @return array Title
continue; // There's nothing else we can do
}
$unconvertedTitle = $titleObj->getPrefixedText();
- $titleWasConverted = false;
+ $titleWasConverted = false;
$iw = $titleObj->getInterwiki();
if ( strval( $iw ) !== '' ) {
// This title is an interwiki link.
$wgContLang->findVariantLink( $title, $titleObj );
$titleWasConverted = $unconvertedTitle !== $titleObj->getPrefixedText();
}
-
-
+
+
if ( $titleObj->getNamespace() < 0 ) {
// Handle Special and Media pages
$titleObj = $titleObj->fixSpecialName();