Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/123107

Change subject: Fix EventLogging schema registry
......................................................................

Fix EventLogging schema registry

Change-Id: I1cf495e476bcb2a7aa2b7a955d8cc38f33b0ad65
(cherry picked from commit 6b2504d2682748f5e75b0c79f8d20bd2b58844fc)
---
M UploadWizardHooks.php
1 file changed, 8 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/07/123107/1

diff --git a/UploadWizardHooks.php b/UploadWizardHooks.php
index 73e4d94..9c531a3 100644
--- a/UploadWizardHooks.php
+++ b/UploadWizardHooks.php
@@ -497,18 +497,20 @@
                if ( array_key_exists( 'titleblacklist', $wgAPIModules ) ) {
                        self::$modules['ext.uploadWizard']['dependencies'][] = 
'mediawiki.api.titleblacklist';
                }
-               if ( array_key_exists( 'ext.eventLogging', $wgResourceModules ) 
) {
-                       self::$modules['schema.UploadWizardTutorialActions'] = 
array(
-                               'class'  => 'ResourceLoaderSchemaModule',
-                               'schema' => 'UploadWizardTutorialActions',
-                               'revision' => 5803466,
-                       );
+
+               if ( class_exists( 'ResourceLoaderSchemaModule' ) ) {
+                       $resourceLoader->register( 
'schema.UploadWizardTutorialActions', array(
+                                       'class' => 'ResourceLoaderSchemaModule',
+                                       'schema' => 
'UploadWizardTutorialActions',
+                                       'revision' => 5803466,
+                       ) );
 
                        
self::$modules['ext.uploadWizard.events']['dependencies'] = array(
                                'ext.eventLogging',
                                'schema.UploadWizardTutorialActions',
                        );
                }
+
                foreach ( self::$modules as $name => $resources ) {
                        $resourceLoader->register(
                                $name,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1cf495e476bcb2a7aa2b7a955d8cc38f33b0ad65
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: wmf/1.23wmf19
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>

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

Reply via email to