Skip to content

Commit

Permalink
Fixed issue #9089: Mixed content in statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 17, 2014
1 parent acb8f3e commit 585da43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/helpers/admin/statistics_helper.php
Expand Up @@ -3198,7 +3198,11 @@ public function generate_statistics($surveyid, $allfields, $q2show='all', $usegr
{
$sGoogleMapsAPIKey='&key='.$sGoogleMapsAPIKey;
}
$statisticsoutput .= "<script type=\"text/javascript\" src=\"http://maps.googleapis.com/maps/api/js?sensor=false$sGoogleMapsAPIKey\"></script>\n"
$sSSL='';
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off"){
$sSSL='s';
}
$statisticsoutput .= "<script type=\"text/javascript\" src=\"http{$sSSL}://maps.googleapis.com/maps/api/js?sensor=false$sGoogleMapsAPIKey\"></script>\n"
."<script type=\"text/javascript\">var site_url='".Yii::app()->baseUrl."';var temppath='$tempurl';var imgpath='".Yii::app()->getConfig('adminimageurl')."';var aGMapData=".ls_json_encode($agmapdata) .";var aStatData=".ls_json_encode($astatdata)."</script>";
return $statisticsoutput;

Expand Down

0 comments on commit 585da43

Please sign in to comment.