UserGetLanguageObject hook should accept any IContextSource
Bug: 72951 Change-Id: Id5df9783b5aa4cd9dd3a1d234492448d70b13c63
This commit is contained in:
@@ -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