Refactor the css so that embedded images are optimally loaded

Change-Id: If19d20fb22afafbf62c355394dcda825a0151ac6
This commit is contained in:
Santhosh Thottingal authored and Niklas Laxström committed 2014-01-23 16:48:18 +00:00
1 parent 50eb932756
commit 81c4dfe848
7 files changed
+142 -115

No files matched your search

+7 -1
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;
}