Jdlrobson has uploaded a new change for review.

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


Change subject: Fix fix me (js error on edit page)
......................................................................

Fix fix me (js error on edit page)

Now the module is in contextModules

Change-Id: Ibc33354f8ff89ac7d0ce141e4535cc6e670f23dc
---
M includes/skins/SkinMobile.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/38/55838/1

diff --git a/includes/skins/SkinMobile.php b/includes/skins/SkinMobile.php
index 4b61b0f..f0d4e16 100644
--- a/includes/skins/SkinMobile.php
+++ b/includes/skins/SkinMobile.php
@@ -268,7 +268,7 @@
                        $out->addModules( $moduleNames['bottom'] );
                        $out->addModules( $contextModules['bottom'] );
                        // FIXME: EditPage.php adds an inline script that 
breaks editing without this - dirty hack
-                       if ( in_array( 'mobile.action.edit', 
$moduleNames['bottom'] ) ) {
+                       if ( in_array( 'mobile.action.edit', 
$contextModules['bottom'] ) ) {
                                $bottomScripts = Html::inlineScript(
                                        
'mw.loader.implement("mediawiki.action.edit", [],{},{});' .
                                        'mw.toolbar = { addButton: 
function(){}, init: function(){} };'

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc33354f8ff89ac7d0ce141e4535cc6e670f23dc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

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

Reply via email to