Followup r89566, r89568, make links point to the user whom the contributions are...
authorSam Reed <reedy@users.mediawiki.org>
Sun, 26 Jun 2011 19:33:05 +0000 (19:33 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 26 Jun 2011 19:33:05 +0000 (19:33 +0000)
Add a comment to go with r90775

includes/specials/SpecialContributions.php

index 90ceacf..fe0e10c 100644 (file)
@@ -117,6 +117,8 @@ class SpecialContributions extends SpecialPage {
 
                $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 @@ class SpecialContributions extends SpecialPage {
                }
 
                // Add RSS/atom links
-               $this->addFeedLinks( array( 'action' => 'feedcontributions', 'user' => $wgUser->getName() ) );
+               $this->addFeedLinks( array( 'action' => 'feedcontributions', 'user' => $target ) );
 
                if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id ) ) ) {