r47770 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47769‎ | r47770 | r47771 >
Date:23:13, 24 February 2009
Author:demon
Status:ok
Tags:
Comment:
(bug 17291) MediaWiki:Nocontribs should pass on $target just like Sp-contributions-footer (Patch by church of emacs)
Modified paths:
  • /trunk/phase3/CREDITS (modified) (history)
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -3171,4 +3171,5 @@
31723172 'userrights' => 'Not used as normal message but as header for the special page itself',
31733173 'revision-info' => 'Additionally available: $3: revision id',
31743174 'revision-info-current' => 'Available parameters: $1: timestamp; $2: userlinks; $3: revision id',
 3175+ 'nocontribs' => 'Optional parameter: $1 is the user name',
31753176 );
Index: trunk/phase3/CREDITS
@@ -60,6 +60,7 @@
6161 * Brent G
6262 * Brianna Laugher
6363 * Carlin
 64+* church of emacs
6465 * Daniel Arnold
6566 * Danny B.
6667 * FunPika
Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -95,7 +95,7 @@
9696
9797 $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] );
9898 if( !$pager->getNumRows() ) {
99 - $wgOut->addWikiMsg( 'nocontribs' );
 99+ $wgOut->addWikiMsg( 'nocontribs', $target );
100100 return;
101101 }
102102
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2556,7 +2556,7 @@
25572557 'contributions-title' => 'User contributions for $1',
25582558 'mycontris' => 'My contributions',
25592559 'contribsub2' => 'For $1 ($2)',
2560 -'nocontribs' => 'No changes were found matching these criteria.',
 2560+'nocontribs' => 'No changes were found matching these criteria.', # optional parameter: $1 is the user name
25612561 'uctop' => '(top)',
25622562 'month' => 'From month (and earlier):',
25632563 'year' => 'From year (and earlier):',
Index: trunk/phase3/RELEASE-NOTES
@@ -119,6 +119,8 @@
120120 line
121121 * Add logging to password resets if not resetting your own
122122 * Added $wgUseTagFilter to control enabling of filter-by-change-tag
 123+* (bug 17291) MediaWiki:Nocontribs now has an optional $1 parameter for the
 124+ username
123125
124126 === Bug fixes in 1.15 ===
125127 * (bug 16968) Special:Upload no longer throws useless warnings.
@@ -345,4 +347,4 @@
346348
347349 === IRC help ===
348350
349 -There's usually someone online in #mediawiki on irc.freenode.net
 351+There's usually someone online in #mediawiki on irc.freenode.net
\ No newline at end of file

Status & tagging log