From: Sam Reed Date: Sun, 26 Jun 2011 19:33:05 +0000 (+0000) Subject: Followup r89566, r89568, make links point to the user whom the contributions are... X-Git-Tag: 1.31.0-rc.0~29264 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=9b033b11e227b96f953da4d2ccee51225b2a87a5;p=lhc%2Fweb%2Fwiklou.git Followup r89566, r89568, make links point to the user whom the contributions are for (not $wgUser) Add a comment to go with r90775 --- diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 90ceacf2b7..fe0e10c4f9 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -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 ) ) ) {