Nemo bis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/186916
Change subject: Allow a full text search button on Commons whenever possible
......................................................................
Allow a full text search button on Commons whenever possible
* The "Go" search is not usually appropriate on Commons, where few
results are found in the galleries: forcing it causes confusion.
* Set $wgVectorUseSimpleSearch to false to show a "Search" button
whenever allowed by the skin. The the users/site can decide if
or how to use it.
Bug: T19471
Change-Id: I6a177c4a0c1dbd47bbdee27f9fbac771f48270fa
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/16/186916/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 3cc9da6..e0a2f7b 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2763,6 +2763,12 @@
$wgSearchExtraNamespaces = $wmgSearchExtraNamespaces;
}
+if ( $wmgVectorUseSimpleSearch ) {
+ $wgVectorUseSimpleSearch = true;
+} else {
+ $wgVectorUseSimpleSearch = false;
+}
+
if ( $wmgUseGlobalAbuseFilters ) {
$wgAbuseFilterCentralDB = $wmgAbuseFilterCentralDB;
$wgAbuseFilterIsCentral = ( $wgDBname == $wgAbuseFilterCentralDB );
diff --git a/wmf-config/InitialiseSettings.php
b/wmf-config/InitialiseSettings.php
index 78c9640..594dcbc 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -14171,6 +14171,11 @@
'commonswiki' => array( NS_CATEGORY ),
),
+'wmgVectorUseSimpleSearch' => array (
+ 'default' => true,
+ 'commonswiki' => false, // T19471
+)
+
'wmgUseSecurePoll' => array(
'default' => true,
'labswiki' => false,
--
To view, visit https://gerrit.wikimedia.org/r/186916
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a177c4a0c1dbd47bbdee27f9fbac771f48270fa
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits