From: Brion Vibber Date: Thu, 23 Dec 2004 11:43:24 +0000 (+0000) Subject: * (bug 1164) Let wikitext be used in Loginprompt and Loginend messages X-Git-Tag: 1.5.0alpha1~1042 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=55a6f0e37158c67c182030078f499286256c3e15;p=lhc%2Fweb%2Fwiklou.git * (bug 1164) Let wikitext be used in Loginprompt and Loginend messages --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0d435ba5b5..cc1676a771 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -961,6 +961,19 @@ class QuickTemplate { 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 */ diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index d416896d07..c0b0f519b5 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -17,7 +17,7 @@ class UserloginTemplate extends QuickTemplate {

html('error') ?>

msg('login' ) ?>:

-

msg('loginprompt') ?>

+

msgWiki('loginprompt') ?>

@@ -106,7 +106,7 @@ class UserloginTemplate extends QuickTemplate {
msgHtml( 'loginend' ); + $this->msgWiki( 'loginend' ); } }