Jdlrobson has uploaded a new change for review.

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

Change subject: Ensure notifications overlay code runs
......................................................................

Ensure notifications overlay code runs

Should be a string not an array.
Also add group user to ensure browser loads from cached anonymous
pages.

Bug: 73149
Change-Id: I0cd04a2dc62f7fd353c9e0584fec82fc68321dbf
---
M includes/Resources.php
M includes/skins/SkinMinerva.php
2 files changed, 2 insertions(+), 1 deletion(-)


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

diff --git a/includes/Resources.php b/includes/Resources.php
index 9e911a4..a91c4e6 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -951,6 +951,7 @@
                'scripts' => array(
                        'javascripts/modules/notifications/notifications.js',
                ),
+               'group' => 'user',
        ),
 
        'mobile.notifications.overlay' => $wgMFResourceFileModuleBoilerplate + 
array(
diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index 8347569..3d1455b 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -864,7 +864,7 @@
                        $modules[] = 'mobile.usermodule';
 
                        if ( $this->useEcho() ) {
-                               $modules['notifications'] = array( 
'mobile.notifications' );
+                               $modules['notifications'] = 
'mobile.notifications';
                        }
 
                        if ( $this->isCurrentPageEditable() ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0cd04a2dc62f7fd353c9e0584fec82fc68321dbf
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