Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -962,8 +962,21 @@ |
963 | 963 | } |
964 | 964 | |
965 | 965 | /** |
| 966 | + * An ugly, ugly hack. |
966 | 967 | * @access private |
967 | 968 | */ |
| 969 | + function msgWiki( $str ) { |
| 970 | + global $wgParser, $wgTitle, $wgOut, $wgUseTidy; |
| 971 | + |
| 972 | + $text = $this->translator->translate( $str ); |
| 973 | + $parserOutput = $wgParser->parse( $text, $wgTitle, |
| 974 | + $wgOut->mParserOptions, true ); |
| 975 | + echo $parserOutput->getText(); |
| 976 | + } |
| 977 | + |
| 978 | + /** |
| 979 | + * @access private |
| 980 | + */ |
968 | 981 | function haveData( $str ) { |
969 | 982 | return $this->data[$str]; |
970 | 983 | } |
Index: trunk/phase3/includes/templates/Userlogin.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | <p class='error'><?php $this->html('error') ?></p> |
19 | 19 | <?php } else { ?> |
20 | 20 | <h2><?php $this->msg('login' ) ?>:</h2> |
21 | | - <p><?php $this->msg('loginprompt') ?></p> |
| 21 | + <p><?php $this->msgWiki('loginprompt') ?></p> |
22 | 22 | <?php } ?> |
23 | 23 | <form name="userlogin" id="userlogin" method="post" action="<?php $this->text('action') ?>"> |
24 | 24 | <table border='0'> |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | </table> |
108 | 108 | </form> |
109 | 109 | <?php |
110 | | - $this->msgHtml( 'loginend' ); |
| 110 | + $this->msgWiki( 'loginend' ); |
111 | 111 | } |
112 | 112 | } |
113 | 113 | |