jenkins-bot has submitted this change and it was merged.
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, 3 insertions(+), 5 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/MobileFrontend.php b/MobileFrontend.php
index b864cc6..6070679 100644
--- a/MobileFrontend.php
+++ b/MobileFrontend.php
@@ -192,11 +192,6 @@
$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 +206,9 @@
// Config instance
$wgConfigRegistry['mobilefrontend'] = 'GlobalVarConfig::newInstance';
+// Set LESS importpath
+$wgResourceLoaderLESSImportPaths[] = __DIR__ . "/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: merged
Gerrit-Change-Id: I5c2c5f90d7c9af2714e4d0ed6218f326b4185d45
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits