remove z_root()

This commit is contained in:
Philipp Holzer 2018-10-13 19:07:22 +02:00
parent a8282d143e
commit e4afd1c120
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ function openstreetmap_generate_map(&$a, &$b)
{
$tmsserver = Config::get('openstreetmap', 'tmsserver', OSM_TMS);
if (strpos(z_root(), 'https:') !== false) {
if (strpos($a->getBaseURL(true), 'https:') !== false) {
$tmsserver = str_replace('http:','https:',$tmsserver);
}