]> git.mxchange.org Git - friendica-addons.git/commitdiff
remove z_root()
authorPhilipp Holzer <admin@philipp.info>
Sat, 13 Oct 2018 17:07:22 +0000 (19:07 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sat, 13 Oct 2018 17:07:22 +0000 (19:07 +0200)
notifyall/notifyall.php
openstreetmap/openstreetmap.php

index a019303920ae987e3911af835bf5bdd8d7d198c6..824e306b92cd90b56776b4406a6fd69be00d49dc 100644 (file)
@@ -28,7 +28,7 @@ function notifyall_module() {}
 
 function notifyall_addon_admin(App $a, &$o)
 {
-       $o = '<div></div>&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . z_root() . '/notifyall">' . L10n::t('Send email to all members') . '</a></br/>';
+       $o = '<div></div>&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . $a->getBaseURL() . '/notifyall">' . L10n::t('Send email to all members') . '</a></br/>';
 }
 
 
index 0420591eb95b414fc8288afd344c9f07fb2f8e21..8255b940e669c350abd7fb1fc9512a40b56b8155 100644 (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);
        }