Last modified: 2010-05-15 15:33:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 924 - Allow all user preferences defaults to be set in LocalSettings.php
Allow all user preferences defaults to be set in LocalSettings.php
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-11-21 05:38 UTC by Zigger
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Zigger 2004-11-21 05:38:44 UTC
As an enhancement, all user preferences should be able to be set as site and
language defaults.

Currently DefaultSettings.php only has $wgDefaultSkin and maybe $wgAmericanDates.

Language.php has $wgDefaultUserOptionsEn, which seems to be incomplete, and
could be per user-language.
Comment 1 Brion Vibber 2004-11-21 06:32:39 UTC
Note that languages can override the getDefaultUserOptions() 
method to set additional or override global default 

Changing subject line to concentrate on the site-specific setting 
aspect, which I agree would be nice to do cleanly. Shouldn't be 
too hard to add an override array.
Comment 2 Brion Vibber 2004-11-21 07:53:10 UTC
Added $wgDefaultUserSettings array in 1.4:

Settings added to this array will override the language globals for
the user preferences used by anonymous visitors and newly created
accounts. (See names and sample values in languages/Language.php)

For instance, to disable section editing links:
  $wgDefaultUserOptions['editsection'] = 0;

Note You need to log in before you can comment on or make changes to this bug.