From: Chad Horohoe Date: Tue, 24 Feb 2009 23:13:18 +0000 (+0000) Subject: (bug 17291) MediaWiki:Nocontribs should pass on $target just like Sp-contributions... X-Git-Tag: 1.31.0-rc.0~42693 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=b1d418782f6becf1e8e92105c594b73177440675;p=lhc%2Fweb%2Fwiklou.git (bug 17291) MediaWiki:Nocontribs should pass on $target just like Sp-contributions-footer (Patch by church of emacs) --- 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', );