Legoktm has submitted this change and it was merged.

Change subject: Minor RL registration cleanup
......................................................................


Minor RL registration cleanup

Change-Id: Ia6c779d7f3e83730cab6943f3b89642f37b7bfaa
---
M MobileApp.php
1 file changed, 7 insertions(+), 12 deletions(-)

Approvals:
  Legoktm: Verified; Looks good to me, approved



diff --git a/MobileApp.php b/MobileApp.php
index 8de4d2a..807dd17 100644
--- a/MobileApp.php
+++ b/MobileApp.php
@@ -13,7 +13,7 @@
        die( -1 );
 }
 
-$localBasePath = dirname( __DIR__ );
+$localBasePath = __DIR__;
 $remoteExtPath = 'MobileApp';
 
 // Extension credits that will show up on Special:Version
@@ -27,15 +27,10 @@
 
 $wgMessagesDirs['MobileApp'] = __DIR__ . "/i18n";
 
-// List of less files included for both iOS and Android
-$commonStyles = array(
-       'MobileApp/less/common.less'
+$wgResourceModules['mobile.app'] = array(
+       'styles' => array(
+               'less/common.less'
+       ),
+       'localBasePath' => $localBasePath,
+       'remoteExtPath' => $remoteExtPath
 );
-
-$wgResourceModules = array_merge( $wgResourceModules, array(
-       'mobile.app' => array(
-               'styles' => $commonStyles,
-               'localBasePath' => $localBasePath,
-               'remoteExtPath' => $remoteExtPath
-       )
-) );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia6c779d7f3e83730cab6943f3b89642f37b7bfaa
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileApp
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>

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

Reply via email to