public $mLanguageLinks;
/**
- * @var array $mCategoriesMap of category names to sort keys
+ * @var array $mCategories Map of category names to sort keys
*/
public $mCategories;
return $this->mSections;
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function getEditSectionTokens() {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function &getLinks() {
return $this->mLinks;
}
return $this->mModules;
}
- public function getModuleScripts() {
- wfDeprecated( __METHOD__, '1.33' );
- return [];
- }
-
public function getModuleStyles() {
return $this->mModuleStyles;
}
return $this->mLimitReportJSData;
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function getTOCEnabled() {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function getEnableOOUI() {
return $this->mEnableOOUI;
}
return wfSetVar( $this->mSections, $toc );
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function setEditSectionTokens( $t ) {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function setIndexPolicy( $policy ) {
return wfSetVar( $this->mIndexPolicy, $policy );
}
return wfSetVar( $this->mTimestamp, $timestamp );
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function setTOCEnabled( $flag ) {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function addCategory( $c, $sort ) {
$this->mCategories[$c] = $sort;
}
// TODO: we'll have to be smarter about this!
$this->mSections = array_merge( $this->mSections, $source->getSections() );
- $this->mTOCHTML = $this->mTOCHTML . $source->mTOCHTML;
+ $this->mTOCHTML .= $source->mTOCHTML;
// XXX: we don't want to concatenate title text, so first write wins.
// We should use the first *modified* title text, but we don't have the original to check.