From 9b033b11e227b96f953da4d2ccee51225b2a87a5 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 26 Jun 2011 19:33:05 +0000 Subject: [PATCH] Followup r89566, r89568, make links point to the user whom the contributions are for (not $wgUser) Add a comment to go with r90775 --- includes/specials/SpecialContributions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) ) ) { -- 2.20.1