Page MenuHomePhabricator

make array $wgDefaultUserOptions (in DefaultSetings.php) and array static public $mToggles (User.php) using the same set of options
Closed, InvalidPublic

Description

Make array $wgDefaultUserOptions (in DefaultSetings.php) and array static public
$mToggles (User.php) using the same set of options.

Currently the list in DefaultSettings.php is only a subset of the available
preferences for new accounts. For example, "rememberpassword" is present in both
lists, but "watchdefault" is missing in $wgDefaultUserOptions in DefaultSetings.php.

I suggest to add all $mToggles in the list in DefaultSettings.php to help
MediaWiki installers to customize their settings for new accounts.


Version: unspecified
Severity: trivial

Details

Reference
bz8299

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:33 PM
bzimport set Reference to bz8299.
bzimport added a subscriber: Unknown Object (MLST).

That's a list of options *which are toggles* to be handled by generic checkbox
toggle code in Special:Preferences.

Other options are not toggles of this type, but have special meaning and are
handled by separate code.

(In reply to comment #1)

That's a list of options *which are toggles* to be handled by generic checkbox
toggle code in Special:Preferences.

Other options are not toggles of this type, but have special meaning and are
handled by separate code.

The default setting for new accounts for "watchdefault" is not set expressly; I
expected this to happen in DefaultSettings.php.

rotemliss wrote:

There are also toggles which are not in $wgDefaultUserOptions, e.g. ccmeonemails
or watchdeletion. They should be added.