]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Load MS Virtual Earth javascript over https when browsing in https
authorCraig Andrews <candrews@integralblue.com>
Wed, 27 Oct 2010 04:09:43 +0000 (00:09 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 27 Oct 2010 04:09:43 +0000 (00:09 -0400)
plugins/Mapstraction/MapstractionPlugin.php

index c4ba6464eaa1077e5ca81b8e2fb65439d2f5d782..08465e0a779136dd5e53f1f6535b12d26d6aab64 100644 (file)
@@ -125,7 +125,7 @@ class MapstractionPlugin extends Plugin
                                     urlencode($this->apikey)));
             break;
         case 'microsoft':
-            $action->script('http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6');
+            $action->script((StatusNet::isHTTPS()?'https':'http') + '://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6');
             break;
         case 'openlayers':
             // XXX: is this not nice...?