Gergő Tisza has uploaded a new change for review.

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

Change subject: Fix UploadWizard logging some more, maybe
......................................................................

Fix UploadWizard logging some more, maybe

Change-Id: Ib6f722dfe904f3107041ef2c52a51eae5eeb9571
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/862
---
M UploadWizard.php
1 file changed, 8 insertions(+), 4 deletions(-)


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

diff --git a/UploadWizard.php b/UploadWizard.php
index 18814d2..df0dba9 100644
--- a/UploadWizard.php
+++ b/UploadWizard.php
@@ -134,10 +134,14 @@
        'position' => 'top'
 ) + $uploadWizardModuleInfo;
 
-$wgEventLoggingSchemas[ 'UploadWizardUploadActions' ] = 5811620;
-$wgEventLoggingSchemas[ 'UploadWizardStep' ] = 8851805;
-$wgEventLoggingSchemas[ 'UploadWizardFlowEvent' ] = 8851807;
-$wgEventLoggingSchemas[ 'UploadWizardUploadFlowEvent' ] = 9609883;
+$wgExtensionFunctions[] = function () {
+       global $wgEventLoggingSchemas;
+
+       $wgEventLoggingSchemas[ 'UploadWizardUploadActions' ] = 5811620;
+       $wgEventLoggingSchemas[ 'UploadWizardStep' ] = 8851805;
+       $wgEventLoggingSchemas[ 'UploadWizardFlowEvent' ] = 8851807;
+       $wgEventLoggingSchemas[ 'UploadWizardUploadFlowEvent' ] = 9609883;
+};
 
 // Campaign hook handlers
 $wgHooks[ 'BeforePageDisplay' ][] = 'CampaignHooks::onBeforePageDisplay';

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib6f722dfe904f3107041ef2c52a51eae5eeb9571
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: GergÅ‘ Tisza <[email protected]>

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

Reply via email to