Remove redundant preference for talk page emails

Change-Id: I725075abef309d8626979ebd010794aafd75aada
This commit is contained in:
Kaldari 2012-12-19 15:22:05 -08:00
parent 150e7078a3
commit ab1d910abe
2 changed files with 5 additions and 4 deletions

View file

@ -179,10 +179,6 @@ $wgEchoDefaultNotificationTypes = array( // Welcome events do not use subscripti
'all' => array(
'notify' => true,
'email' => true,
),
'reverted' => array(
'notify' => true,
'email' => true,
)
);

View file

@ -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;
}