From: Craig Andrews Date: Wed, 27 Oct 2010 04:09:43 +0000 (-0400) Subject: Load MS Virtual Earth javascript over https when browsing in https X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9f9126e5245173b06719638e434b19f6973661b4;p=quix0rs-gnu-social.git Load MS Virtual Earth javascript over https when browsing in https --- diff --git a/plugins/Mapstraction/MapstractionPlugin.php b/plugins/Mapstraction/MapstractionPlugin.php index c4ba6464ea..08465e0a77 100644 --- a/plugins/Mapstraction/MapstractionPlugin.php +++ b/plugins/Mapstraction/MapstractionPlugin.php @@ -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...?