Remove debugging issue in user preferences
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 14 Jan 2011 20:43:30 +0000 (20:43 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 14 Jan 2011 20:43:30 +0000 (20:43 +0000)
'tototo' message key does not exist that made the message dropped.
Could have used null as a value but it looks nicer to just set
the value.

Per CR on r80281

includes/Preferences.php

index 28ad9d3..77f9d3d 100644 (file)
@@ -330,9 +330,11 @@ class Preferences {
                        $helpMessages[] = $wgEmailConfirmToEdit
                                        ? 'prefs-help-email-required'
                                        : 'prefs-help-email' ;
-                       $helpMessages[] = $wgEnableUserEmail
-                                       ? 'prefs-help-email-others'
-                                       : 'tototo' ;
+
+                       if( $wgEnableUserEmail ) {
+                               // additional messages when users can send email to each other
+                               $helpMessages[] = 'prefs-help-email-others';
+                       }
 
                        $defaultPreferences['emailaddress'] = array(
                                'type' => $wgAuth->allowPropChange( 'emailaddress' ) ? 'email' : 'info',