r87694 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87693‎ | r87694 | r87695 >
Date:20:25, 8 May 2011
Author:ialex
Status:deferred
Tags:
Comment:
OutputPage::addWikiText() with wfMsg() -> OutputPage::addWikiMsg()
Modified paths:
  • /trunk/extensions/CommentSpammer/CommentSpammer.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CommentSpammer/CommentSpammer.php
@@ -162,7 +162,7 @@
163163 $spammer = self::isCommentSpammer( $editPage->mTitle );
164164 if( $spammer ) {
165165 global $wgOut;
166 - $wgOut->addWikiText( wfMsg( 'commentspammer-save-blocked' ) );
 166+ $wgOut->addWikiMsg( 'commentspammer-save-blocked' );
167167 }
168168 return ! $spammer; // need to invert, as true hook retval means "no problem", whereas if $spammer == true, then we have a problem.
169169 }

Status & tagging log