Index: trunk/extensions/Translate/utils/UserToggles.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * Add preferences for Translate |
7 | 7 | */ |
8 | 8 | public static function onGetPreferences( $user, &$preferences ) { |
9 | | - global $wgEnableEmail, $wgUser; |
| 9 | + global $wgEnableEmail, $wgUser, $wgEnotifRevealEditorAddress; |
10 | 10 | |
11 | 11 | if ( $wgEnableEmail && $wgUser->isEmailConfirmed() ) { |
12 | 12 | // 'translate-pref-nonewsletter' is used as opt-out for |
— | — | @@ -19,7 +19,8 @@ |
20 | 20 | ); |
21 | 21 | |
22 | 22 | // Add setting after 'enotifrevealaddr' |
23 | | - $preferences = wfArrayInsertAfter( $preferences, $prefs, 'enotifrevealaddr' ); |
| 23 | + $preferences = wfArrayInsertAfter( $preferences, $prefs, |
| 24 | + $wgEnotifRevealEditorAddress ? 'enotifrevealaddr' : 'enotifminoredits' ); |
24 | 25 | } |
25 | 26 | |
26 | 27 | return true; |