From: Michael Date: Mon, 30 Dec 2019 01:20:55 +0000 (+0000) Subject: Fix PR 927: Adds forgotten calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=141007764b66aca2e11dbe27dbbdbd97c3489ef0;p=friendica-addons.git Fix PR 927: Adds forgotten calls --- diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index 7b33306f..1d219c3a 100644 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -9,6 +9,7 @@ * */ +use Friendica\DI; use Friendica\Core\Cache; use Friendica\Core\Config; use Friendica\Core\Hook; @@ -55,7 +56,7 @@ function openstreetmap_load_config(\Friendica\App $a, ConfigFileLoader $loader) function openstreetmap_alterheader($a, &$navHtml) { - $addScriptTag = '' . "\r\n"; + $addScriptTag = '' . "\r\n"; $a->page['htmlhead'] .= $addScriptTag; } @@ -159,7 +160,7 @@ function openstreetmap_generate_map(&$a, &$b) { $tmsserver = Config::get('openstreetmap', 'tmsserver', OSM_TMS); - if (strpos($a->getBaseURL(true), 'https:') !== false) { + if (strpos(DI::baseUrl()->get(true), 'https:') !== false) { $tmsserver = str_replace('http:','https:',$tmsserver); }