http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90847
Revision: 90847
Author: reedy
Date: 2011-06-26 19:33:05 +0000 (Sun, 26 Jun 2011)
Log Message:
-----------
Followup r89566, r89568, make links point to the user whom the contributions
are for (not $wgUser)
Add a comment to go with r90775
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialContributions.php
Modified: trunk/phase3/includes/specials/SpecialContributions.php
===================================================================
--- trunk/phase3/includes/specials/SpecialContributions.php 2011-06-26
19:32:20 UTC (rev 90846)
+++ trunk/phase3/includes/specials/SpecialContributions.php 2011-06-26
19:33:05 UTC (rev 90847)
@@ -117,6 +117,8 @@
$feedType = $wgRequest->getVal( 'feed' );
if( $feedType ) {
+ // Maintain some level of backwards compatability
+ // If people request feeds using the old parameters,
redirect to API
$apiParams = array(
'action' => 'feedcontributions',
'feedformat' => $feedType,
@@ -151,7 +153,7 @@
}
// Add RSS/atom links
- $this->addFeedLinks( array( 'action' => 'feedcontributions',
'user' => $wgUser->getName() ) );
+ $this->addFeedLinks( array( 'action' => 'feedcontributions',
'user' => $target ) );
if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array(
$id ) ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs