MaxSem has submitted this change and it was merged.

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(-)

Approvals:
  MaxSem: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 73ada0d..8d64769 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' => 5383883,
                '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: merged
Gerrit-Change-Id: I95ac8357fdcd70bbceccd7e530d08b9c9d82564f
Gerrit-PatchSet: 3
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: awjrichards <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to