Refactor the css so that embedded images are optimally loaded

Change-Id: If19d20fb22afafbf62c355394dcda825a0151ac6
This commit is contained in:
Santhosh Thottingal
2014-01-23 03:50:40 +00:00
committed by Niklas Laxström
parent 50eb932756
commit 81c4dfe848
7 changed files with 142 additions and 115 deletions

View File

@@ -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;
}