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 a019303..824e306 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 0420591..8255b94 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);
        }