From: Brad Jorsch Date: Tue, 4 Nov 2014 16:27:23 +0000 (-0500) Subject: UserGetLanguageObject hook should accept any IContextSource X-Git-Tag: 1.31.0-rc.0~13400 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=0eebd5e91e934336620d8a30a3e379b9f6541b89;p=lhc%2Fweb%2Fwiklou.git UserGetLanguageObject hook should accept any IContextSource Bug: 72951 Change-Id: I7c385a2cac0696493dd1c97268e5c4d03829234a --- diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index d75d1f5d3f..fa870bb414 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -16,6 +16,9 @@ production. validity must be checked by passing the user-supplied token to User::matchEditToken rather than by testing for equality with a newly-generated token. +* (bug 72951) The UserGetLanguageObject hook may be passed any IContextSource + for its $context parameter. Formerly it was documented as receiving a + RequestContext specifically. === New features in 1.25 === * (bug 62861) Updated plural rules to CLDR 26. Includes incompatible changes diff --git a/docs/hooks.txt b/docs/hooks.txt index 7afbf1c1b7..18b709935d 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2872,7 +2872,7 @@ $user: User object 'UserGetLanguageObject': Called when getting user's interface language object. $user: User object &$code: Language code that will be used to create the object -$context: RequestContext object +$context: IContextSource object 'UserGetReservedNames': Allows to modify $wgReservedUsernames at run time. &$reservedUsernames: $wgReservedUsernames