mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Remove redundant preference for talk page emails
Change-Id: I725075abef309d8626979ebd010794aafd75aada
This commit is contained in:
parent
150e7078a3
commit
ab1d910abe
4
Echo.php
4
Echo.php
|
@ -179,10 +179,6 @@ $wgEchoDefaultNotificationTypes = array( // Welcome events do not use subscripti
|
|||
'all' => array(
|
||||
'notify' => true,
|
||||
'email' => true,
|
||||
),
|
||||
'reverted' => array(
|
||||
'notify' => true,
|
||||
'email' => true,
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -157,6 +157,11 @@ class EchoHooks {
|
|||
} elseif ( !$wgEchoDefaultNotificationTypes['all']['email'] ) {
|
||||
continue;
|
||||
}
|
||||
// If we're creating our own preference for email notification on user
|
||||
// talk page edit, remove the existing preference from the User profile tab.
|
||||
if ( $enabledEvent === 'edit-user-talk' ) {
|
||||
unset( $preferences['enotifusertalkpages'] );
|
||||
}
|
||||
$eventMessage = wfMessage( 'echo-pref-email-' . $enabledEvent )->plain();
|
||||
$emailOptions["$eventMessage"] = $enabledEvent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue