Skip to content

Commit f627d7e

Browse files
authored
Merge pull request #159 from 7tonin/7tonin-patch-2
osm_get_js $httpx comment again, Coding Guidelines
2 parents 79d1e16 + 601a83c commit f627d7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/functions_map.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ function osm_get_js($conf, $local_conf, $js_data)
305305
? $local_conf['autocenter']
306306
: 0;
307307

308-
// When gallery is SSL and when switching baselayerURL to https is possible
309-
$httpx = (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')?'https':'http';
308+
// When gallery is SSL and when switching to SSL baselayerURL is possible, use $httpx
309+
$httpx = ((!empty($_SERVER['HTTPS'])) and (strtolower($_SERVER['HTTPS']) !== 'off')) ? 'https' : 'http';
310310

311311
// Load baselayerURL
312312
if ($baselayer == 'mapnik') $baselayerurl = $httpx.'://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';

0 commit comments

Comments
 (0)