(bug 17291) MediaWiki:Nocontribs should pass on $target just like Sp-contributions...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 24 Feb 2009 23:13:18 +0000 (23:13 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 24 Feb 2009 23:13:18 +0000 (23:13 +0000)
CREDITS
RELEASE-NOTES
includes/specials/SpecialContributions.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

diff --git a/CREDITS b/CREDITS
index d80037d..bc24522 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -60,6 +60,7 @@ following names for their contribution to the product.
 * Brent G
 * Brianna Laugher
 * Carlin
+* church of emacs
 * Daniel Arnold
 * Danny B.
 * FunPika
index 2c7d0ea..c4dc3b8 100644 (file)
@@ -119,6 +119,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   line
 * Add logging to password resets if not resetting your own
 * Added $wgUseTagFilter to control enabling of filter-by-change-tag
+* (bug 17291) MediaWiki:Nocontribs now has an optional $1 parameter for the
+  username
 
 === Bug fixes in 1.15 ===
 * (bug 16968) Special:Upload no longer throws useless warnings.
@@ -345,4 +347,4 @@ going to run a public MediaWiki, so you can be notified of security fixes.
 
 === IRC help ===
 
-There's usually someone online in #mediawiki on irc.freenode.net
+There's usually someone online in #mediawiki on irc.freenode.net
\ No newline at end of file
index 724479c..64c6569 100644 (file)
@@ -95,7 +95,7 @@ class SpecialContributions extends SpecialPage {
 
                $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] );
                if( !$pager->getNumRows() ) {
-                       $wgOut->addWikiMsg( 'nocontribs' );
+                       $wgOut->addWikiMsg( 'nocontribs', $target );
                        return;
                }
 
index 4cdf116..7fe8913 100644 (file)
@@ -2556,7 +2556,7 @@ $1',
 'contributions-title' => 'User contributions for $1',
 'mycontris'           => 'My contributions',
 'contribsub2'         => 'For $1 ($2)',
-'nocontribs'          => 'No changes were found matching these criteria.',
+'nocontribs'          => 'No changes were found matching these criteria.', # optional parameter: $1 is the user name
 'uctop'               => '(top)',
 'month'               => 'From month (and earlier):',
 'year'                => 'From year (and earlier):',
index 42ebdee..eee749a 100644 (file)
@@ -3171,4 +3171,5 @@ $wgMessageComments = array(
        'userrights'                  => 'Not used as normal message but as header for the special page itself',
        'revision-info'               => 'Additionally available: $3: revision id',
        'revision-info-current'       => 'Available parameters: $1: timestamp; $2: userlinks; $3: revision id',
+       'nocontribs'                  => 'Optional parameter: $1 is the user name',
 );