diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php
index 7b33306fa..1d219c3a6 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);
}