From: Matěj Grabovský Date: Thu, 19 Nov 2009 18:59:42 +0000 (+0000) Subject: (bug 16884) Fixed feed links in sidebar not complying with URL parameters of the... X-Git-Tag: 1.31.0-rc.0~38751 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=12a1ac5e1295a3ecb385b595c3f6915cd9e85582;p=lhc%2Fweb%2Fwiklou.git (bug 16884) Fixed feed links in sidebar not complying with URL parameters of the displayed page --- 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() ) ); } /**