Fix for bug 19887, make sure tagfilter form option is "consumed" (whatever that means...
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 27 Jul 2009 10:45:18 +0000 (10:45 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 27 Jul 2009 10:45:18 +0000 (10:45 +0000)
includes/specials/SpecialNewpages.php
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialRecentchangeslinked.php

index 20cb120..8607857 100644 (file)
@@ -165,6 +165,7 @@ class SpecialNewpages extends SpecialPage {
                $this->opts->consumeValue( 'offset' ); // don't carry offset, DWIW
                $namespace = $this->opts->consumeValue( 'namespace' );
                $username = $this->opts->consumeValue( 'username' );
+               $tagFilterVal = $this->opts->consumeValue( 'tagfilter' );
 
                // Check username input validity
                $ut = Title::makeTitleSafe( NS_USER, $username );
@@ -177,7 +178,7 @@ class SpecialNewpages extends SpecialPage {
                }
                $hidden = implode( "\n", $hidden );
 
-               $tagFilter = ChangeTags::buildTagFilterSelector( $this->opts['tagfilter'] );
+               $tagFilter = ChangeTags::buildTagFilterSelector( $tagFilterVal );
                if ($tagFilter)
                        list( $tagFilterLabel, $tagFilterSelector ) = $tagFilter;
 
index ab3830b..caeda53 100644 (file)
@@ -414,7 +414,7 @@ class SpecialRecentChanges extends SpecialPage {
 
                $defaults = $opts->getAllValues();
                $nondefaults = $opts->getChangedValues();
-               $opts->consumeValues( array( 'namespace', 'invert' ) );
+               $opts->consumeValues( array( 'namespace', 'invert', 'tagfilter' ) );
 
                $panel = array();
                $panel[] = $this->optionsPanel( $defaults, $nondefaults );
index 0a680f3..3905b43 100644 (file)
@@ -168,7 +168,7 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges {
        }
        
        function getExtraOptions( $opts ){
-               $opts->consumeValues( array( 'showlinkedto', 'target' ) );
+               $opts->consumeValues( array( 'showlinkedto', 'target', 'tagfilter' ) );
                $extraOpts = array();
                $extraOpts['namespace'] = $this->namespaceFilterForm( $opts );
                $extraOpts['target'] = array( wfMsgHtml( 'recentchangeslinked-page' ),