Skip to content

Commit 601a83c

Browse files
authored
osm_get_js $httpx comment again, Coding Guidelines
1 parent f6542d6 commit 601a83c

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
@@ -307,8 +307,8 @@ function osm_get_js($conf, $local_conf, $js_data)
307307
? $local_conf['autocenter']
308308
: 0;
309309

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

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

0 commit comments

Comments
 (0)