Reedy has uploaded a new change for review.

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

Change subject: Only set remote config if wiki isn't Zero
......................................................................

Only set remote config if wiki isn't Zero

Change-Id: Id28bf092b04dc4179e82b1235d125a9f4367035a
---
M wmf-config/mobile.php
1 file changed, 8 insertions(+), 6 deletions(-)


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

diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 7a84ddd..39484d9 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -34,12 +34,14 @@
                require_once( "$IP/extensions/JsonConfig/JsonConfig.php" );
                require_once( "$IP/extensions/ZeroBanner/ZeroBanner.php" );
 
-               $wgJsonConfigs['JsonZeroConfig']['isLocal'] = false;
-               $wgJsonConfigs['JsonZeroConfig']['remote'] = [
-                       'url' => 'https://zero.wikimedia.org/w/api.php',
-                       'username' => $wmgZeroPortalApiUserName,
-                       'password' => $wmgZeroPortalApiPassword,
-               ];
+               if ( $wgDBname !== 'zerowiki' ) {
+                       $wgJsonConfigs['JsonZeroConfig']['isLocal'] = false;
+                       $wgJsonConfigs['JsonZeroConfig']['remote'] = [
+                               'url' => 'https://zero.wikimedia.org/w/api.php',
+                               'username' => $wmgZeroPortalApiUserName,
+                               'password' => $wmgZeroPortalApiPassword,
+                       ];
+               }
 
                // @TODO: which group(s) on all wikies should Zero allow to 
flush cache?
                $wgGroupPermissions['sysop']['jsonconfig-flush'] = true;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id28bf092b04dc4179e82b1235d125a9f4367035a
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to