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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2924, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 924 - Allow all user preferences defaults to be set in LocalSettings.php
Allow all user preferences defaults to be set in LocalSettings.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.4.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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 
settings.

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.


Navigation
Links