UserGetLanguageObject hook should accept any IContextSource
Bug: 72951 Change-Id: Id5df9783b5aa4cd9dd3a1d234492448d70b13c63
This commit is contained in:
1 parent
b239278ae7
commit
266a601b3a
1 file changed
+2
-2
@@ -193,10 +193,10 @@ class UniversalLanguageSelectorHooks {
|
|||||||
* Hook to UserGetLanguageObject
|
* Hook to UserGetLanguageObject
|
||||||
* @param User $user
|
* @param User $user
|
||||||
* @param string $code
|
* @param string $code
|
||||||
* @param RequestContext $context
|
* @param IContextSource $context
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function getLanguage( User $user, &$code, RequestContext $context ) {
|
public static function getLanguage( User $user, &$code, IContextSource $context ) {
|
||||||
global $wgULSAnonCanChangeLanguage, $wgULSLanguageDetection;
|
global $wgULSAnonCanChangeLanguage, $wgULSLanguageDetection;
|
||||||
|
|
||||||
if ( !self::isToolbarEnabled( $user ) ) {
|
if ( !self::isToolbarEnabled( $user ) ) {
|
||||||
|
|||||||
Reference in new issue
Block a user