Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/108735


Change subject: Add 'wmgUniversalLanguageSelectorDefault'
......................................................................

Add 'wmgUniversalLanguageSelectorDefault'

- Adds 'wmgUniversalLanguageSelectorDefault' configuration variable.
- When true, $wgDefaultUserOptions['uls-enable'] is set to 1, meaning ULS is
  enabled by default unless explicity disabled by user.
- wmgUniversalLanguageSelectorDefault defaults to false
- True on wikidatawiki, wikidatatestwiki, and testwiki.

Change-Id: Ie9ff567554737333a6a97130f94a6a0592837914
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/35/108735/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 38128cc..eb0c069 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2471,6 +2471,10 @@
                $wgULSNoImeSelectors[] = '.ace_editor textarea';
        }
 
+       if ( $wmgUniversalLanguageSelectorDefault ) {
+               $wgDefaultUserOptions['uls-enable'] = 1;
+       }
+
        // Fetch fonts from stable URLs so that they're cached longer. This is 
to avoid
        // re-downloading of fonts for each new branch. But that only works for 
production,
        // not labs. If this variable is not set, $wgExtensionAssetsPath is 
used.
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 8ca1c6a..f2d3587 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -12512,6 +12512,14 @@
        'default' => true,
 ),
 
+// Should ULS be enabled for users by default
+'wmgUniversalLanguageSelectorDefault' => array(
+       'default' => false,
+       'testwiki' => true,
+       'testwikidatawiki' => true,
+       'wikidatawiki' => true,
+),
+
 'wmgULSPosition' => array(
        'default' => 'interlanguage',
        'special' => 'personal',

-- 
To view, visit https://gerrit.wikimedia.org/r/108735
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie9ff567554737333a6a97130f94a6a0592837914
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to