Use ExtensionRegistry to see if Babel is loaded
Change-Id: Iabc24b4580bab39a6d232d61e9c52a641cce41a3
This commit is contained in:
@@ -422,7 +422,7 @@ class Hooks implements
|
||||
$vars['wgULSAcceptLanguageList'] = array_keys( $out->getRequest()->getAcceptLang() );
|
||||
}
|
||||
|
||||
if ( $loggedIn && class_exists( Babel::class ) ) {
|
||||
if ( $loggedIn && ExtensionRegistry::getInstance()->isLoaded( 'Babel' ) ) {
|
||||
$userLanguageInfo = Babel::getCachedUserLanguageInfo( $user );
|
||||
|
||||
// This relies on the fact that Babel levels are 'N' and
|
||||
|
||||
Reference in New Issue
Block a user