* (bug 21803) Special:MyContributions now keeps the query string parameters
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Dec 2009 21:47:06 +0000 (21:47 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Dec 2009 21:47:06 +0000 (21:47 +0000)
As side effect:
* Redirecting special pages now keep query string paramters set to "0" (e.g. for namespace)

RELEASE-NOTES
includes/SpecialPage.php

index 6752aea..a360a3d 100644 (file)
@@ -674,6 +674,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 20549) Parser tests were broken on SQLite backend
 * (bug 21776) Interwiki urls like http://en.wikibooks.org/wiki/cs: should give
   a redirect instead of a baderror.
+* (bug 21803) Special:MyContributions now keeps the query string parameters
+* Redirecting special pages now keep query string paramters set to "0" (e.g.
+  for namespace)
 
 == API changes in 1.16 ==
 
index f6781ed..a7556d7 100644 (file)
@@ -858,7 +858,7 @@ Perhaps no page aliases are defined for it?" );
                global $wgRequest;
                $params = array();
                foreach( $this->mAllowedRedirectParams as $arg ) {
-                       if( $val = $wgRequest->getVal( $arg, false ) )
+                       if( ( $val = $wgRequest->getVal( $arg, null ) ) !== null )
                                $params[] = $arg . '=' . $val;
                }
 
@@ -965,6 +965,8 @@ class SpecialMytalk extends UnlistedSpecialPage {
 class SpecialMycontributions extends UnlistedSpecialPage {
        function __construct() {
                parent::__construct(  'Mycontributions' );
+               $this->mAllowedRedirectParams = array( 'limit', 'namespace', 'tagfilter',
+                       'offset', 'dir', 'year', 'month', 'feed' );
        }
 
        function getRedirect( $subpage ) {