Siebrand Mazeland
547858b7fe
Use link() instead of deprecated makeLinkObj() where possible.
2009-05-08 23:24:31 +00:00
Chad Horohoe
fdbb1752ab
Kill a bunch of unused $wgUser
2009-04-28 03:03:48 +00:00
Andrew Garrett
e25322e5cb
Clean up remnants from half-done solutions in r49925, per comments on code review
2009-04-27 12:04:28 +00:00
Andrew Garrett
a507ffb487
Fix missing global wgLang
2009-04-27 05:40:07 +00:00
Andrew Garrett
cfcb8b4789
Fix problem where cached user objects would not update when default user options were changed. Now, only the option *overrides* are stored in the cache, and the options themselves are built from the defaults + overrides per request.
2009-04-27 03:51:07 +00:00
Andrew Garrett
b1623a4339
Update MW_USER_VERSION
2009-04-24 08:37:19 +00:00
Andrew Garrett
f64e5295c9
Fix sneaky memcached issue which was preventing successful user option migration
2009-04-24 08:35:33 +00:00
Andrew Garrett
8aa7ce82bc
Fix storage of settings with no defaults -- treat the default as null and do not store if the setting is false or null (but DO store if it is zero)
2009-04-24 07:58:23 +00:00
Andrew Garrett
155ddf6de4
Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia).
2009-04-24 01:31:17 +00:00
Chad Horohoe
398626e98c
Add newlines back to eof.
2009-04-20 14:35:35 +00:00
Chad Horohoe
da5834962b
Followup to r49493: Tweak this so we only set the title if explicitly asking for it or the Skin's title is null. Make $mTitle protected.
2009-04-20 14:32:41 +00:00
Chad Horohoe
94cdb82e2d
Reverting r49646 (and followups r49647 r49650) per comments on code review:
...
* Could possibly be 1 pref instead of two to reduce clutter
* A pref for NewPages doesn't belong with prefs for RecentChanges
* This should definitely wait for the preference branch to be merged
2009-04-19 21:03:30 +00:00
Purodha B Blissenbach
424a04428b
(bug 7039) Show/hide bots/own edits from Recentchanges via preferences
...
(Bug 16957) partial fix: Show/hide bots/own edits from Newpage via preferences
2009-04-19 18:43:52 +00:00
Alexandre Emsenhuber
841d869cc5
Fix for r49493: use correct doxygen's @param syntax
2009-04-17 19:03:46 +00:00
Chad Horohoe
eb377664b9
initPage() is far too late to be setting a title, so we'll do it right after newFromKey() is called. Allow getSkin() to be passed a title for context, else fall back to OutputPage's title.
2009-04-15 04:43:06 +00:00
Roan Kattouw
549b1688cc
Redo r48746 (API userrights, reverted in r48909 and r48910) in a way that doesn't break CentralAuth. Basically, this works around PHP's inability (at least in < 5.3) to override static methods by adding a hook. Changes to CentralAuth in next commit.
2009-03-28 19:08:47 +00:00
Andrew Garrett
d4d0329547
Revert r48746 (API userrights). Breaks Special:GlobalGroupMembership by changing overridden methods to static methods, which cannot be overridden. Also reverts r48747, r48814, r48778, r48775
2009-03-27 05:59:42 +00:00
Andrew Garrett
a99c11e4e3
Revert r47569 and subsequent related revisions. These still break logging in with temporary passwords despite two attempts to fix the issue.
2009-03-25 02:27:30 +00:00
Ryan Schmidt
bf6780f1f6
* not sure where that extra ] came from...
2009-03-24 22:39:42 +00:00
Ryan Schmidt
c75197371c
* Added $wgInvalidUsernameCharacters to disallow certain characters in
...
usernames during registration (such as "@")
* Added $wgUserrightsInterwikiDelimiter to allow changing the delimiter
used in Special:UserRights to denote the user should be searched for
on a different database
2009-03-24 22:36:53 +00:00
Roan Kattouw
3c52c2c64b
* API: (bug 15935) Add action=userrights to the API
...
* Add ustoken=userrights to list=users
* Move the non-UI part of UserrightsPage::saveUserGroups() to the static and more generic doSaveUserGroups()
* Add a $reason parameter to UserrightsPage::addLogEntry() and make it and its helpers static
* Move UserrightsPage::changeableGroups() and changeableByGroup() to the User class and make the latter static
* In doSaveUserGroups(), drop groups that the user doesn't have from $remove (and those that they do have from $add), and return array($add, $remove)
* Fix up a comment in ApiQueryRecentChanges
2009-03-24 16:04:50 +00:00
Alexandre Emsenhuber
8420d17844
Added 'override-export-depth' right to User::$mCoreRights
2009-03-17 20:10:09 +00:00
Andrew Garrett
d6635eef30
Use getId() instead of mId in getEditCount(), so it works with unloaded user objects
2009-02-26 11:33:23 +00:00
Chad Horohoe
983ddd2c7e
ChangePassword fixes:
...
* (bug 15876) Allow on-wiki password resets. Needs 'reset-passwords' right, given by default to nobody (commented in DefaultSettings)
* Stronger username checking. If we're not allowed to change other people's passwords, don't even attempt it
2009-02-20 18:35:49 +00:00
Tim Starling
72c40682dd
Added $wgRateLimitsExcludedIPs feature, based on live hack.
2009-02-17 03:17:19 +00:00
Alexandre Emsenhuber
5e95796a6b
(bug 17404) "userrights-interwiki" right was missing in User::$mCoreRights
2009-02-08 19:28:37 +00:00
Andrew Garrett
639105afc1
Add missing mCoreRight 'writeapi' to User.php
2009-02-05 07:47:46 +00:00
Aaron Schulz
d6e5ae467f
(bug 17352) Improve review UI with regards to blocks
2009-02-04 18:23:26 +00:00
Tim Starling
b45af1125c
Added basic support for Wietse Venema's taint feature. Fixed a few instances of shoddy code that it turned up, no actual vulnerabilities yet.
2009-02-04 09:10:32 +00:00
Andrew Garrett
e15fcdbf60
Add some core rights
2009-02-02 23:35:12 +00:00
Aaron Schulz
2bb2c01430
Fix typo in r45855
2009-01-18 19:23:20 +00:00
Aaron Schulz
9df8757ceb
(bug 16957) Add show/hide to Preferences for option on Special:NewPages
2009-01-18 00:01:58 +00:00
Aaron Schulz
6fb1c0146d
isAllowed('patrol') now returns false if patrolling is disabled
2009-01-17 23:32:27 +00:00
Nathaniel Herman
4c9d5a0eb0
Add new hook 'UserLoadFromDatabase' that is called while loading a user from the database.
2009-01-16 23:34:38 +00:00
Aaron Schulz
cd3efbc8aa
(bug 16969) Add show/hide to Preferences for option on specialpages added by FlaggedRevs
2009-01-13 13:46:02 +00:00
Aaron Schulz
dd3a2ccdf1
(bug 2164) Add a "reset to site defaults" link to Special:Preferences
2009-01-08 14:02:05 +00:00
Chad Horohoe
3f66a6ca3c
Re-fix bug 2242 - adding expiry time for temporary passwords. Now with proper global declarations in User :)
2009-01-07 14:34:55 +00:00
Brion Vibber
c6a91a002d
Revert r45450, r45451 "(bug 2242) Introduce expiry time for temporary passwords."
...
<b>Notice</b>: Undefined variable: wgNewPasswordExpiry in <b>/Library/WebServer/Documents/trunk/includes/User.php</b> on line <b>2710</b><br />
2009-01-07 03:54:29 +00:00
Chad Horohoe
b4f1376fc2
(bug 2242) Introduce expiry time for temporary passwords.
2009-01-06 16:21:44 +00:00
Aaron Schulz
d5ff477372
(bug 16579) Check if session is set
2009-01-03 16:40:21 +00:00
Aaron Schulz
1f3f314609
(bug 14737) Allow the autoconfirmed timer to run from the first edit
2009-01-03 12:53:08 +00:00
Alexandre Emsenhuber
1da88add83
Fix for r45238: remove interwiki right from User::$mCoreRights
2009-01-01 14:46:32 +00:00
Victor Vasiliev
3753eb574e
* Put restricted image moving back, with Brion's permission
2009-01-01 02:03:09 +00:00
Brion Vibber
be53330439
Revert r45197 "* Enable image moving by default. All known serious issues seem to be fixed."
...
Don't want to do this just yet, we're in the middle of testing things.
2008-12-31 22:12:09 +00:00
Brion Vibber
2190984466
Revert r45231, r45235 "* (bug 674) Allow users to be blocked from editing a specific article"
...
Unexpected schema changes in the middle of code review and run-up to 1.14 freeze
2008-12-31 18:56:16 +00:00
Victor Vasiliev
1f67478d1f
* (bug 674) Allow users to be blocked from editing a specific article
...
** Also supports blocking user from editing whole namespace
** Fixed most issues which were found before
2008-12-31 17:25:47 +00:00
Victor Vasiliev
e3ea7d63e8
* Enable image moving by default. All known serious issues seem to be fixed.
...
* Create "movefile" permission
* Restrict image moving to sysops till we are absolutely sure it works correctly.
2008-12-30 19:02:51 +00:00
Alexandre Emsenhuber
6b21abd4f5
Missing rights: move-rootuserpages, move-subpages
2008-12-28 21:24:51 +00:00
Alexandre Emsenhuber
c05f2b86e9
Tweaks to Special:Interwiki:
...
* Splitted SpecialInterwiki::execute() in multiple functions
* using OutputPage::addWikiMsg() and OutputPage::wrapWikiMsg() when possible
* using $res->fetchObject() and $res->free() rather than $dbr->fetchObject() and $dbr->freeResult()
* Removed 'interwiki' restrict passed to parent::__construct() so that it appears in Special:SpecialPages for everybody
* Added missing 'interwiki' entry to User::$mCoreRights
2008-12-27 13:35:55 +00:00
Ryan Schmidt
d6a2ba6f34
* adding two hooks UserCryptPassword and UserComparePasswords to allow extensions to change how passwords are hashed in the database
2008-12-19 23:18:44 +00:00