X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=99258c64c8761509c452e99ca304e700ecc5f37f;hb=293436e5fd5110220c969513858dbb979f1f35d3;hp=5b2bea2977b070fdb908eeb720ca1a699ba15173;hpb=c32b2463b96643c794113146543624e8f993084c;p=friendica.git diff --git a/include/enotify.php b/include/enotify.php index 5b2bea2977..99258c64c8 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -648,6 +648,7 @@ function notification($params) { * @param str $defaulttype (Optional) Forces a notification with this type. */ function check_item_notification($itemid, $uid, $defaulttype = "") { + $a = get_app(); $notification_data = array("uid" => $uid, "profiles" => array()); call_hooks('check_item_notification', $notification_data); @@ -666,7 +667,7 @@ function check_item_notification($itemid, $uid, $defaulttype = "") { $profiles[] = $owner[0]["url"]; // Notifications from Diaspora are often with an URL in the Diaspora format - $profiles[] = App::get_baseurl()."/u/".$user[0]["nickname"]; + $profiles[] = $a->get_baseurl()."/u/".$user[0]["nickname"]; $profiles2 = array(); @@ -720,7 +721,7 @@ function check_item_notification($itemid, $uid, $defaulttype = "") { $params["to_email"] = $user[0]["email"]; $params["item"] = $item[0]; $params["parent"] = $item[0]["parent"]; - $params["link"] = App::get_baseurl().'/display/'.urlencode($item[0]["guid"]); + $params["link"] = $a->get_baseurl().'/display/'.urlencode($item[0]["guid"]); $params["otype"] = 'item'; $params["source_name"] = $item[0]["author-name"]; $params["source_link"] = $item[0]["author-link"];