function notifyall_addon_admin(App $a, &$o)
{
- $o = '<div></div> <a href="' . z_root() . '/notifyall">' . L10n::t('Send email to all members') . '</a></br/>';
+ $o = '<div></div> <a href="' . $a->getBaseURL() . '/notifyall">' . L10n::t('Send email to all members') . '</a></br/>';
}
{
$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);
}