UserGetLanguageObject hook should accept any IContextSource
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 4 Nov 2014 16:27:23 +0000 (11:27 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 4 Nov 2014 16:52:12 +0000 (11:52 -0500)
Bug: 72951
Change-Id: I7c385a2cac0696493dd1c97268e5c4d03829234a

RELEASE-NOTES-1.25
docs/hooks.txt

index d75d1f5..fa870bb 100644 (file)
@@ -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
index 7afbf1c..18b7099 100644 (file)
@@ -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