r63341 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63340‎ | r63341 | r63342 >
Date:20:55, 6 March 2010
Author:ialex
Status:ok
Tags:
Comment:
Follow-up r63340: don't throw a notice if $wgEnotifRevealEditorAddress is false
Modified paths:
  • /trunk/extensions/Translate/utils/UserToggles.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/UserToggles.php
@@ -5,7 +5,7 @@
66 * Add preferences for Translate
77 */
88 public static function onGetPreferences( $user, &$preferences ) {
9 - global $wgEnableEmail, $wgUser;
 9+ global $wgEnableEmail, $wgUser, $wgEnotifRevealEditorAddress;
1010
1111 if ( $wgEnableEmail && $wgUser->isEmailConfirmed() ) {
1212 // 'translate-pref-nonewsletter' is used as opt-out for
@@ -19,7 +19,8 @@
2020 );
2121
2222 // Add setting after 'enotifrevealaddr'
23 - $preferences = wfArrayInsertAfter( $preferences, $prefs, 'enotifrevealaddr' );
 23+ $preferences = wfArrayInsertAfter( $preferences, $prefs,
 24+ $wgEnotifRevealEditorAddress ? 'enotifrevealaddr' : 'enotifminoredits' );
2425 }
2526
2627 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63340* (bug 22747) "Reveal my e-mail address in notification e-mails" preference i...ialex20:49, 6 March 2010

Status & tagging log