[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add b/c for the $wgEchoConfig -> $wgEchoEventLoggingSchema r...

2016-12-05 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

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

Approvals:
  Thcipriani: Looks good to me, approved
  Legoktm: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index ab0e3b9..4bf2aee 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2624,10 +2624,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: merged
Gerrit-Change-Id: I544f37dd5d89a1abe8a3e86740e69e2a2157ffe3
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Catrope 
Gerrit-Reviewer: Florianschmidtwelzow 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Thcipriani 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add b/c for the $wgEchoConfig -> $wgEchoEventLoggingSchema r...

2016-12-01 Thread Catrope (Code Review)
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 

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