jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/371499 )

Change subject: Load mobile.site on all mobile skins
......................................................................


Load mobile.site on all mobile skins

Bug: T171062
Change-Id: I094a57532a4e7dac47d06f25c56dbd4935ec707c
---
M includes/MobileFrontend.hooks.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Bmansurov: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index 70eec12..40f2379 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -780,6 +780,10 @@
                                );
                        }
 
+                       // In mobile mode 
MediaWiki:Common.css/MediaWiki:Common.js is not loaded.
+                       // We load MediaWiki:Mobile.css/js instead
+                       $out->addModules( [ 'mobile.site' ] );
+
                        // Allow modifications in mobile only mode
                        Hooks::run( 'BeforePageDisplayMobile', [ &$out, &$sk ] 
);
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I094a57532a4e7dac47d06f25c56dbd4935ec707c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: Bmansurov <bmansu...@wikimedia.org>
Gerrit-Reviewer: Pmiazga <pmia...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to