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 authored and Gerrit Code Review committed 2012-11-10 07:15:07 +00:00
1 parent 8d5307852a
commit 3c9e7249a8
4 files changed
+28 -17

No files matched your search

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