Geoclient fixes for https and WMF

* Don't call freegeoip on https, it wont work
* Use Geo instead of GEO like WMF

Change-Id: I9ebdd9f3518e15e70122a9c8c8d64240d5e44c5b
This commit is contained in:
Niklas Laxström
2012-11-03 10:06:07 +00:00
committed by Gerrit Code Review
parent 8d5307852a
commit 3c9e7249a8
4 changed files with 28 additions and 17 deletions

View File

@@ -26,11 +26,8 @@ class UniversalLanguageSelectorHooks {
* @return bool
*/
public static function addModules( $out, $skin ) {
global $wgULSGeoService;
$out->addModules( 'ext.uls.init' );
if ( $wgULSGeoService ) {
$out->addModules( 'ext.uls.geoclient' );
}
$out->addModules( 'ext.uls.geoclient' );
return true;
}