App::get_baseurl is now replaced with System::baseUrl

This commit is contained in:
Michael
2017-08-26 07:32:10 +00:00
parent 3c24bed412
commit 5adfeb0bd5
134 changed files with 603 additions and 624 deletions

View File

@@ -183,7 +183,7 @@ function ping_init(App $a)
$intro_count = count($intros1) + count($intros2);
$intros = $intros1 + $intros2;
$myurl = App::get_baseurl() . '/profile/' . $a->user['nickname'] ;
$myurl = System::baseUrl() . '/profile/' . $a->user['nickname'] ;
$mails = qu("SELECT `id`, `from-name`, `from-url`, `from-photo`, `created` FROM `mail`
WHERE `uid` = %d AND `seen` = 0 AND `from-url` != '%s' ",
intval(local_user()),
@@ -266,7 +266,7 @@ function ping_init(App $a)
if (dbm::is_result($intros)) {
foreach ($intros as $intro) {
$notif = array(
'href' => App::get_baseurl() . '/notifications/intros/' . $intro['id'],
'href' => System::baseUrl() . '/notifications/intros/' . $intro['id'],
'name' => $intro['name'],
'url' => $intro['url'],
'photo' => $intro['photo'],
@@ -281,7 +281,7 @@ function ping_init(App $a)
if (dbm::is_result($mails)) {
foreach ($mails as $mail) {
$notif = array(
'href' => App::get_baseurl() . '/message/' . $mail['id'],
'href' => System::baseUrl() . '/message/' . $mail['id'],
'name' => $mail['from-name'],
'url' => $mail['from-url'],
'photo' => $mail['from-photo'],
@@ -296,7 +296,7 @@ function ping_init(App $a)
if (dbm::is_result($regs)) {
foreach ($regs as $reg) {
$notif = array(
'href' => App::get_baseurl() . '/admin/users/',
'href' => System::baseUrl() . '/admin/users/',
'name' => $reg['name'],
'url' => $reg['url'],
'photo' => $reg['micro'],
@@ -473,7 +473,7 @@ function ping_get_notifications($uid)
);
}
$notification["href"] = App::get_baseurl() . "/notify/view/" . $notification["id"];
$notification["href"] = System::baseUrl() . "/notify/view/" . $notification["id"];
if ($notification["visible"] && !$notification["spam"] &&
!$notification["deleted"] && !is_array($result[$notification["parent"]])) {