From b1d418782f6becf1e8e92105c594b73177440675 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 24 Feb 2009 23:13:18 +0000 Subject: [PATCH] (bug 17291) MediaWiki:Nocontribs should pass on $target just like Sp-contributions-footer (Patch by church of emacs) --- CREDITS | 1 + RELEASE-NOTES | 4 +++- includes/specials/SpecialContributions.php | 2 +- languages/messages/MessagesEn.php | 2 +- maintenance/language/messages.inc | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CREDITS b/CREDITS index d80037d933..bc245226bb 100644 --- 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 diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2c7d0eaa5e..c4dc3b809c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 724479c51e..64c65692db 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -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; } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 4cdf116f76..7fe8913d6d 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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):', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 42ebdee37d..eee749aca3 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -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', ); -- 2.20.1