UserGetLanguageObject hook should accept any IContextSource

Bug: 72951
Change-Id: Id5df9783b5aa4cd9dd3a1d234492448d70b13c63
This commit is contained in:
Brad Jorsch
2014-11-04 11:23:34 -05:00
parent b239278ae7
commit 266a601b3a

View File

@@ -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 ) ) {