Refactor the css so that embedded images are optimally loaded
Change-Id: If19d20fb22afafbf62c355394dcda825a0151ac6
This commit is contained in:
committed by
Niklas Laxström
parent
50eb932756
commit
81c4dfe848
@@ -45,7 +45,7 @@ class UniversalLanguageSelectorHooks {
|
||||
* Hook: BeforePageDisplay
|
||||
*/
|
||||
public static function addModules( $out, $skin ) {
|
||||
global $wgULSGeoService, $wgULSEventLogging;
|
||||
global $wgULSPosition, $wgULSGeoService, $wgULSEventLogging;
|
||||
|
||||
$user = $out->getUser();
|
||||
if ( !$user->getBoolOption( 'uls-enable') ) {
|
||||
@@ -76,6 +76,12 @@ class UniversalLanguageSelectorHooks {
|
||||
$out->addModules( 'ext.uls.interface' );
|
||||
}
|
||||
|
||||
if ( $wgULSPosition === 'personal' ) {
|
||||
$out->addModules( 'ext.uls.pt' );
|
||||
} else {
|
||||
$out->addModules( 'ext.uls.interlanguage' );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user