Unhide rcenhancedfilters preference
authorStephane Bisson <sbisson@wikimedia.org>
Fri, 3 Mar 2017 17:31:48 +0000 (12:31 -0500)
committerStephane Bisson <sbisson@wikimedia.org>
Fri, 3 Mar 2017 17:31:48 +0000 (12:31 -0500)
This allows it to be used for the beta feature.

It shouldn't change anything for users since
this preference was never configured to be
shown on Special:Preferences anyway.

Bug: T159007
Change-Id: Ie45c09b59bd0a366531490d3062f9f1a60ea2964

includes/DefaultSettings.php
includes/specials/SpecialRecentchanges.php

index 1a82faf..3b08e07 100644 (file)
@@ -4870,9 +4870,7 @@ $wgDefaultUserOptions = [
 /**
  * An array of preferences to not show for the user
  */
-$wgHiddenPrefs = [
-       'rcenhancedfilters',
-];
+$wgHiddenPrefs = [];
 
 /**
  * Characters to prevent during new account creations.
index 56d866f..cdad926 100644 (file)
@@ -457,12 +457,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
                $panelString = implode( "\n", $panel );
 
                // Insert a placeholder for RCFilters
-               if ( $this->getUser()->getOption(
-                               'rcenhancedfilters',
-                               /*default=*/ null,
-                               /*ignoreHidden=*/ true
-                       )
-               ) {
+               if ( $this->getUser()->getOption( 'rcenhancedfilters' ) ) {
                        $this->getOutput()->addHTML(
                                Html::element(
                                        'div',
@@ -542,12 +537,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
                parent::addModules();
                $out = $this->getOutput();
                $out->addModules( 'mediawiki.special.recentchanges' );
-               if ( $this->getUser()->getOption(
-                               'rcenhancedfilters',
-                               /*default=*/ null,
-                               /*ignoreHidden=*/ true
-                       )
-               ) {
+               if ( $this->getUser()->getOption( 'rcenhancedfilters' ) ) {
                        $out->addModules( 'mediawiki.rcfilters.filters.ui' );
                        $out->addModuleStyles( 'mediawiki.rcfilters.filters.base.styles' );
                }