Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/58551
Change subject: Update mobile.uploads.schema and add modules to mobile
OutputPage
......................................................................
Update mobile.uploads.schema and add modules to mobile OutputPage
This ups the uploads schema to support:
https://gerrit.wikimedia.org/r/58550
Also reflects deprecation of mobileTargets:
https://gerrit.wikimedia.org/r/58550
Change-Id: I95ac8357fdcd70bbceccd7e530d08b9c9d82564f
---
M wmf-config/mobile.php
1 file changed, 11 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/51/58551/1
diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 73ada0d..4b8a692 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -151,16 +151,24 @@
'schema' => 'MobileBetaWatchlist',
'revision' => 5281061,
'targets' => 'mobile',
- 'mobileTargets' => array( 'stable', 'beta', 'alpha' ),
);
$wgResourceModules['mobile.uploads.schema'] = array(
'class' => 'ResourceLoaderSchemaModule',
'schema' => 'MobileWebUploads',
- 'revision' => 5281063,
+ 'revision' => 5382875,
'targets' => 'mobile',
- 'mobileTargets' => array( 'stable', 'beta', 'alpha' ),
);
+
+ $wgHooks['EnableMobileModules'][] = function( $out, $mode ) {
+ $modules = array(
+ 'mobile.uploads.schema',
+ 'mobile.watchlist.schema',
+ );
+ // add regardless of mode
+ $out->addModules( $modules );
+ return true;
+ };
}
// Force HTTPS for login/account creation
--
To view, visit https://gerrit.wikimedia.org/r/58551
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I95ac8357fdcd70bbceccd7e530d08b9c9d82564f
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits