Catrope has uploaded a new change for review.

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

Change subject: Add b/c for the $wgEchoConfig -> $wgEchoEventLoggingSchema 
rename in I2f9d5d111f
......................................................................

Add b/c for the $wgEchoConfig -> $wgEchoEventLoggingSchema rename in I2f9d5d111f

Change-Id: I544f37dd5d89a1abe8a3e86740e69e2a2157ffe3
---
M wmf-config/CommonSettings.php
1 file changed, 9 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/92/324792/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index be0bef1..3833a0e 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2631,10 +2631,15 @@
 if ( $wmgUseEcho ) {
        require_once( "$IP/extensions/Echo/Echo.php" );
 
-       // Eventlogging for Schema:EchoMail
-       $wgEchoConfig['eventlogging']['EchoMail']['enabled'] = true;
-       // Eventlogging for Schema:EchoInteraction
-       $wgEchoConfig['eventlogging']['EchoInteraction']['enabled'] = true;
+       if ( isset( $wgEchoConfig ) ) {
+               // Eventlogging for Schema:EchoMail
+               $wgEchoConfig['eventlogging']['EchoMail']['enabled'] = true;
+               // Eventlogging for Schema:EchoInteraction
+               $wgEchoConfig['eventlogging']['EchoInteraction']['enabled'] = 
true;
+       } else {
+               $wgEchoEventLoggingSchemas['EchoMail']['enabled'] = true;
+               $wgEchoEventLoggingSchemas['EchoInteraction']['enabled'] = true;
+       }
 
        $wgEchoEnableEmailBatch = $wmgEchoEnableEmailBatch;
        $wgEchoEmailFooterAddress = $wmgEchoEmailFooterAddress;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I544f37dd5d89a1abe8a3e86740e69e2a2157ffe3
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Catrope <r...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to