'type' => 'info',
'label-message' => 'username',
'default' => $user->getName(),
- 'section' => 'personal',
+ 'section' => 'personal/info',
);
$defaultPreferences['userid'] =
'type' => 'info',
'label-message' => 'uid',
'default' => $user->getId(),
- 'section' => 'personal',
+ 'section' => 'personal/info',
);
# Get groups to which the user belongs
count($userEffectiveGroupsArray) ),
'default' => $wgLang->commaList( $userEffectiveGroupsArray ),
'raw' => true,
- 'section' => 'personal',
+ 'section' => 'personal/info',
);
$defaultPreferences['editcount'] =
'type' => 'info',
'label-message' => 'prefs-edits',
'default' => $user->getEditCount(),
- 'section' => 'personal',
+ 'section' => 'personal/info',
);
if ($user->getRegistration()) {
'type' => 'info',
'label-message' => 'prefs-registration',
'default' => $wgLang->timeanddate( $user->getRegistration() ),
- 'section' => 'personal',
+ 'section' => 'personal/info',
);
}
array(
'type' => 'text',
'default' => $user->getRealName(),
- 'section' => 'personal',
+ 'section' => 'personal/info',
'label-message' => 'yourrealname',
'help-message' => 'prefs-help-realname',
);
'raw' => true,
'default' => $link,
'label-message' => 'yourpassword',
- 'section' => 'personal',
+ 'section' => 'personal/info',
);
}
$defaultPreferences['gender'] =
array(
'type' => 'select',
- 'section' => 'personal',
+ 'section' => 'personal/info',
'options' => array(
wfMsg('gender-male') => 'male',
wfMsg('gender-female') => 'female',
$defaultPreferences['language'] =
array(
'type' => 'select',
- 'section' => 'personal',
+ 'section' => 'personal/i18n',
'options' => $options,
'label-message' => 'yourlanguage',
);
'label-message' => 'yourvariant',
'type' => 'select',
'options' => $options,
- 'section' => 'personal',
+ 'section' => 'personal/i18n',
);
}
}
$defaultPreferences['noconvertlink'] =
array(
'type' => 'toggle',
- 'section' => 'misc',
+ 'section' => 'personal/i18n',
'label-message' => 'tog-noconvertlink',
);
}
+ $defaultPreferences['rememberpassword'] =
+ array(
+ 'type' => 'toggle',
+ 'label-message' => 'tog-rememberpassword',
+ 'section' => 'personal/i18n',
+ );
+
global $wgMaxSigChars;
$defaultPreferences['nickname'] =
array(
'label-message' => 'yournick',
'validation-callback' =>
array( 'Preferences', 'validateSignature' ),
- 'section' => 'personal',
+ 'section' => 'personal/signature',
'filter-callback' => array( 'Preferences', 'cleanSignature' ),
);
$defaultPreferences['fancysig'] =
array(
'type' => 'toggle',
'label-message' => 'tog-fancysig',
- 'section' => 'personal'
- );
-
- $defaultPreferences['rememberpassword'] =
- array(
- 'type' => 'toggle',
- 'label-message' => 'tog-rememberpassword',
- 'section' => 'personal',
+ 'section' => 'personal/signature'
);
## Email stuff
array(
'type' => 'text',
'default' => $user->getEmail(),
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'youremail',
'help-message' => $wgEmailConfirmToEdit
? 'prefs-help-email-required'
array(
'type' => 'info',
'raw' => true,
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'prefs-emailconfirm-label',
'default' => $emailauthenticated,
);
array(
'type' => 'toggle',
'invert' => true,
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'allowemail',
);
$defaultPreferences['ccmeonemails'] =
array(
'type' => 'toggle',
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'tog-ccmeonemails',
);
}
$defaultPreferences['enotifwatchlistpages'] =
array(
'type' => 'toggle',
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'tog-enotifwatchlistpages',
);
$defaultPreferences['enotifusertalkpages'] =
array(
'type' => 'toggle',
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'tog-enotifusertalkpages',
);
$defaultPreferences['enotifminoredits'] =
array(
'type' => 'toggle',
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'tog-enotifminoredits',
);
$defaultPreferences['enotifrevealaddr'] =
array(
'type' => 'toggle',
- 'section' => 'personal',
+ 'section' => 'personal/email',
'label-message' => 'tog-enotifrevealaddr'
);
}
'options' =>
array_flip( array_map( 'wfMsg', $wgLang->getMathNames() ) ),
'label' => ' ',
- 'section' => 'math',
+ 'section' => 'rendering/math',
);
}
}
'type' => 'select',
'options' => self::getImageSizes(),
'label-message' => 'imagemaxsize',
- 'section' => 'files',
+ 'section' => 'rendering/files',
);
$defaultPreferences['thumbsize'] =
array(
'type' => 'select',
'options' => self::getThumbSizes(),
'label-message' => 'thumbsize',
- 'section' => 'files',
+ 'section' => 'rendering/files',
);
}
array(
'type' => 'int',
'label-message' => 'columns',
- 'section' => 'editing',
+ 'section' => 'editing/textboxsize',
'min' => 4,
'max' => 1000,
);
array(
'type' => 'int',
'label-message' => 'rows',
- 'section' => 'editing',
+ 'section' => 'editing/textboxsize',
'min' => 4,
'max' => 1000,
);