/**
* @param string $text
- * @deprecated since 1.32; use addWikiTextInterface instead
+ * @deprecated since 1.32; use addWikiTextAsInterface instead
*/
public function addWikiText( $text ) {
wfDeprecated( __METHOD__, '1.32' );
- $this->addWikiTextInterface( $text );
+ $this->addWikiTextAsInterface( $text );
}
/**
* @param string $text
+ * @since 1.32
*/
- public function addWikiTextInterface( $text ) {
+ public function addWikiTextAsInterface( $text ) {
$this->addHTML( $this->parent->parse( $text ) );
}
* @return string
*/
private function getCssUrl() {
- return Html::linkedStyle( $_SERVER['PHP_SELF'] . '?css=1' );
+ return Html::linkedStyle( $this->parent->getUrl( [ 'css' => 1 ] ) );
}
public function useShortHeader( $use = true ) {