Index: trunk/extensions/Commentbox/SpecialAddComment_body.php |
— | — | @@ -60,8 +60,8 @@ |
61 | 61 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
62 | 62 | $wgOut->setArticleRelated( false ); |
63 | 63 | |
64 | | - $wgOut->addWikiText( wfMsg( 'spamprotectiontext' ) ); |
65 | | - $wgOut->addWikiText( wfMsg( 'spamprotectionmatch', "<nowiki>{$matches[0]}</nowiki>" ) ); |
| 64 | + $wgOut->addWikiMsg( 'spamprotectiontext' ); |
| 65 | + $wgOut->addWikiMsg( 'spamprotectionmatch', "<nowiki>{$matches[0]}</nowiki>" ); |
66 | 66 | $wgOut->returnToMain( false, $title ); |
67 | 67 | return; |
68 | 68 | } |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | function fail( $str, $title = null ) { |
113 | 113 | global $wgOut; |
114 | 114 | $wgOut->setPageTitle( wfMsg( 'commentbox-errorpage-title' ) ); |
115 | | - $wgOut->addWikiText( "<div class='errorbox'>" . wfMsg( $str ) . "</div><br clear='both' />" ); |
| 115 | + $wgOut->wrapWikiMsg( "<div class='errorbox'>$1</div><br clear='both' />", $str ); |
116 | 116 | if ( $title != null ) |
117 | 117 | $wgOut->returnToMain( false, $title ); |
118 | 118 | return; |