From 12a1ac5e1295a3ecb385b595c3f6915cd9e85582 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C4=9Bj=20Grabovsk=C3=BD?= Date: Thu, 19 Nov 2009 18:59:42 +0000 Subject: [PATCH] (bug 16884) Fixed feed links in sidebar not complying with URL parameters of the displayed page --- RELEASE-NOTES | 2 ++ includes/specials/SpecialContributions.php | 6 +----- includes/specials/SpecialNewpages.php | 6 +----- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7ef10dbaba..e1ad8f6bf1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -640,6 +640,8 @@ Hopefully we will remove this configuration var soon) * (bug 21551) Make Squid reponse limit configurable * Fixed corruption of long UDP debug log messages by using socket_sendto() instead of fsockopen() with fwrite(). +* (bug 16884) Fixed feed links in sidebar not complying with URL parameters + of the displayed page == API changes in 1.16 == diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 9cb8570889..fae82815b2 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -133,12 +133,8 @@ class SpecialContributions extends SpecialPage { protected function setSyndicated() { global $wgOut; - $queryParams = array( - 'namespace' => $this->opts['namespace'], - 'target' => $this->opts['target'] - ); $wgOut->setSyndicated( true ); - $wgOut->setFeedAppendQuery( wfArrayToCGI( $queryParams ) ); + $wgOut->setFeedAppendQuery( wfArrayToCGI( $this->opts ) ); } /** diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index cf1e1af29d..49938db619 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -232,12 +232,8 @@ class SpecialNewpages extends SpecialPage { protected function setSyndicated() { global $wgOut; - $queryParams = array( - 'namespace' => $this->opts->getValue( 'namespace' ), - 'username' => $this->opts->getValue( 'username' ) - ); $wgOut->setSyndicated( true ); - $wgOut->setFeedAppendQuery( wfArrayToCGI( $queryParams ) ); + $wgOut->setFeedAppendQuery( wfArrayToCGI( $this->opts->getAllValues() ) ); } /** -- 2.20.1