Load MS Virtual Earth javascript over https when browsing in https

This commit is contained in:
Craig Andrews 2010-10-27 00:09:43 -04:00
parent bc6a61dc89
commit 9f9126e524

View 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...?