echo $this->translator->translate( $str );
}
+ /**
+ * An ugly, ugly hack.
+ * @access private
+ */
+ function msgWiki( $str ) {
+ global $wgParser, $wgTitle, $wgOut, $wgUseTidy;
+
+ $text = $this->translator->translate( $str );
+ $parserOutput = $wgParser->parse( $text, $wgTitle,
+ $wgOut->mParserOptions, true );
+ echo $parserOutput->getText();
+ }
+
/**
* @access private
*/
<p class='error'><?php $this->html('error') ?></p>
<?php } else { ?>
<h2><?php $this->msg('login' ) ?>:</h2>
- <p><?php $this->msg('loginprompt') ?></p>
+ <p><?php $this->msgWiki('loginprompt') ?></p>
<?php } ?>
<form name="userlogin" id="userlogin" method="post" action="<?php $this->text('action') ?>">
<table border='0'>
</table>
</form>
<?php
- $this->msgHtml( 'loginend' );
+ $this->msgWiki( 'loginend' );
}
}