}
$out->setPageTitle( $this->msg( 'version-credits-title', $extName ) );
- $out->addWikiText( $wikiText );
+ $out->addWikiTextAsInterface( $wikiText );
break;
case 'license':
}
$out->setPageTitle( $this->msg( 'version-license-title', $extName ) );
- $out->addWikiText( $wikiText );
+ $out->addWikiTextAsInterface( $wikiText );
break;
default:
$out->addModuleStyles( 'mediawiki.special.version' );
- $out->addWikiText(
+ $out->addWikiTextAsInterface(
$this->getMediaWikiCredits() .
$this->softwareInformation() .
$this->getEntryPointInfo()
$this->getParserTags() .
$this->getParserFunctionHooks()
);
- $out->addWikiText( $this->getWgHooks() );
+ $out->addWikiTextAsInterface( $this->getWgHooks() );
$out->addHTML( $this->IPInfo() );
break;
*/
public function getEntryPointInfo() {
global $wgArticlePath, $wgScriptPath;
- $scriptPath = $wgScriptPath ? $wgScriptPath : "/";
+ $scriptPath = $wgScriptPath ?: "/";
$entryPoints = [
'version-entrypoints-articlepath' => $wgArticlePath,
'version-entrypoints-scriptpath' => $scriptPath,
foreach ( $entryPoints as $message => $value ) {
$url = wfExpandUrl( $value, PROTO_RELATIVE );
$out .= Html::openElement( 'tr' ) .
- // ->text() looks like it should be ->parse(), but this function
+ // ->plain() looks like it should be ->parse(), but this function
// returns wikitext, not HTML, boo
- Html::rawElement( 'td', [], $this->msg( $message )->text() ) .
+ Html::rawElement( 'td', [], $this->msg( $message )->plain() ) .
Html::rawElement( 'td', [], Html::rawElement( 'code', [], "[$url $value]" ) ) .
Html::closeElement( 'tr' );
}