Florianschmidtwelzow has uploaded a new change for review.
https://gerrit.wikimedia.org/r/187946
Change subject: Hygiene: Move LessImportpath registration out of Extension
function
......................................................................
Hygiene: Move LessImportpath registration out of Extension function
This can be done in Extension initialization.
Change-Id: I5c2c5f90d7c9af2714e4d0ed6218f326b4185d45
---
M MobileFrontend.php
1 file changed, 6 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/46/187946/1
diff --git a/MobileFrontend.php b/MobileFrontend.php
index ad761c8..1caabaf 100644
--- a/MobileFrontend.php
+++ b/MobileFrontend.php
@@ -192,11 +192,7 @@
$wgSpecialPages['Nearby'] = 'SpecialNearby';
$wgSpecialPageGroups['Nearby'] = 'pages';
}
- // Set LESS global variables
- $localBasePath = dirname( __DIR__ );
- $wgResourceLoaderLESSImportPaths = array_merge(
$wgResourceLoaderLESSImportPaths, array(
- "$localBasePath/MobileFrontend/less/minerva.less/",
- ) );
+
$wgResourceLoaderLESSVars = array_merge( $wgResourceLoaderLESSVars,
array(
'wgMFDeviceWidthTablet' => "{$wgMFDeviceWidthTablet}px",
@@ -211,6 +207,11 @@
// Config instance
$wgConfigRegistry['mobilefrontend'] = 'GlobalVarConfig::newInstance';
+// Set LESS global variables
+$wgResourceLoaderLESSImportPaths = array_merge(
$wgResourceLoaderLESSImportPaths, array(
+ dirname( __DIR__ ) . "/MobileFrontend/less/minerva.less/",
+) );
+
// ResourceLoader modules
/**
--
To view, visit https://gerrit.wikimedia.org/r/187946
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c2c5f90d7c9af2714e4d0ed6218f326b4185d45
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits