Kaldari has uploaded a new change for review.
https://gerrit.wikimedia.org/r/52448
Change subject: Making defaultUserOptions based on category to match preferences
......................................................................
Making defaultUserOptions based on category to match preferences
Change-Id: I561ccbb82605a6c2122330b791f3790d9dbe9078
---
M Echo.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/48/52448/1
diff --git a/Echo.php b/Echo.php
index 4f81fc2..2af1775 100644
--- a/Echo.php
+++ b/Echo.php
@@ -352,9 +352,9 @@
$wgDefaultUserOptions['echo-email-frequency'] = EchoHooks::EMAIL_IMMEDIATELY;
// Set all of the events to notify by web and email by default (won't affect
events that don't email)
-foreach ( $wgEchoNotifications as $notification => $notificationData ) {
+foreach ( $wgEchoNotificationCategories as $category => $categoryData ) {
foreach ( $wgEchoNotifiers as $notifierType => $notifierData ) {
-
$wgDefaultUserOptions["echo-subscriptions-{$notifierType}-{$notification}"] =
true;
+
$wgDefaultUserOptions["echo-subscriptions-{$notifierType}-{$category}"] = true;
}
}
// unset default email for reverted, article-linked (change them to opt-in)
--
To view, visit https://gerrit.wikimedia.org/r/52448
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I561ccbb82605a6c2122330b791f3790d9dbe9078
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits