MaxSem has uploaded a new change for review.

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


Change subject: Oh heh facepalm
......................................................................

Oh heh facepalm

Change-Id: I4f1499cf481d831147ffed3de3e96596d0e209d0
---
M wmf-config/mobile.php
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 73ada0d..d2a3d8f 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -176,7 +176,7 @@
        $wgMFVaryResources = true;
        // Point mobile load.php requests to a special path on bits that gets 
X-Device headers
        $wgHooks['EnterMobileMode'][] = function() {
-               global $wgLoadScript;
+               global $wgDBname, $wgLoadScript;
                if ( $wgDBname === 'testwiki' ) {
                        // testwiki's resources aren't loaded from bits, it 
just needs a mobile domain
                        $wgLoadScript = '//test.m.wikipedia.org/w/load.php';

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f1499cf481d831147ffed3de3e96596d0e209d0
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>

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

Reply via email to