Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -330,10 +330,12 @@ |
331 | 331 | $helpMessages[] = $wgEmailConfirmToEdit |
332 | 332 | ? 'prefs-help-email-required' |
333 | 333 | : 'prefs-help-email' ; |
334 | | - $helpMessages[] = $wgEnableUserEmail |
335 | | - ? 'prefs-help-email-others' |
336 | | - : 'tototo' ; |
337 | 334 | |
| 335 | + if( $wgEnableUserEmail ) { |
| 336 | + // additional messages when users can send email to each other |
| 337 | + $helpMessages[] = 'prefs-help-email-others'; |
| 338 | + } |
| 339 | + |
338 | 340 | $defaultPreferences['emailaddress'] = array( |
339 | 341 | 'type' => $wgAuth->allowPropChange( 'emailaddress' ) ? 'email' : 'info', |
340 | 342 | 'default' => $user->getEmail(), |