mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-19 01:03:40 +00:00
remove z_root()
This commit is contained in:
parent
a8282d143e
commit
e4afd1c120
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ function notifyall_module() {}
|
||||||
|
|
||||||
function notifyall_addon_admin(App $a, &$o)
|
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/>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ function openstreetmap_generate_map(&$a, &$b)
|
||||||
{
|
{
|
||||||
$tmsserver = Config::get('openstreetmap', 'tmsserver', OSM_TMS);
|
$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);
|
$tmsserver = str_replace('http:','https:',$tmsserver);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue