(bug 16884) Fixed feed links in sidebar not complying with URL parameters of the...
authorMatěj Grabovský <mgrabovsky@users.mediawiki.org>
Thu, 19 Nov 2009 18:59:42 +0000 (18:59 +0000)
committerMatěj Grabovský <mgrabovsky@users.mediawiki.org>
Thu, 19 Nov 2009 18:59:42 +0000 (18:59 +0000)
RELEASE-NOTES
includes/specials/SpecialContributions.php
includes/specials/SpecialNewpages.php

index 7ef10db..e1ad8f6 100644 (file)
@@ -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 ==
 
index 9cb8570..fae8281 100644 (file)
@@ -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 ) );
        }
 
        /**
index cf1e1af..49938db 100644 (file)
@@ -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() ) );
        }
 
        /**