r36190 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36189‎ | r36190 | r36191 >
Date:12:53, 11 June 2008
Author:raymond
Status:old
Tags:
Comment:
Tweak for r36189: Back to addWikiMsg but now with the appropriate parameter. Thanks to Nikerabbit who points me to the correct usage.
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -650,7 +650,7 @@
651651 return;
652652 }
653653 $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" );
654 - $wgOut->addWikiText( wfMsgExt( 'linkstoimage', array( 'parsemag' ), $count ) );
 654+ $wgOut->addWikiMsg( 'linkstoimage', $count, array( 'parsemag' ) );
655655 $wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" );
656656
657657 $sk = $wgUser->getSkin();
@@ -680,7 +680,7 @@
681681 if ( count( $redirects ) == 0 ) return;
682682
683683 $wgOut->addHTML( "<div id='mw-imagepage-section-redirectstofile'>\n" );
684 - $wgOut->addWikiText( wfMsgExt( 'redirectstofile', array( 'parsemag' ), count( $redirects ) ) );
 684+ $wgOut->addWikiMsg( 'redirectstofile', count( $redirects ), array( 'parsemag' ) );
685685 $wgOut->addHTML( "<ul class='mw-imagepage-redirectstofile'>\n" );
686686
687687 $sk = $wgUser->getSkin();
@@ -701,7 +701,7 @@
702702 if ( count( $dupes ) == 0 ) return;
703703
704704 $wgOut->addHTML( "<div id='mw-imagepage-section-duplicates'>\n" );
705 - $wgOut->addWikiText( wfMsgExt( 'duplicatesoffile', array( 'parsemag' ), count( $dupes ) ) );
 705+ $wgOut->addWikiMsg( 'duplicatesoffile', count( $dupes ), array( 'parsemag' ) );
706706 $wgOut->addHTML( "<ul class='mw-imagepage-duplicates'>\n" );
707707
708708 $sk = $wgUser->getSkin();

Follow-up revisions

RevisionCommit summaryAuthorDate
r36195cleanup for r36190 -- remove extra parameters left over from wfMsgExt() callbrion17:45, 11 June 2008

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r36189Reapply support of plural for 'linkstoimage', 'redirectstofile' and 'duplicat...raymond12:07, 11 June 2008

Status & tagging log