X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=fe8422cc4a80a31460923c07fd44dc257893675d;hb=04e802e0f65d47dee230c5146d33fad1093a9898;hp=fdaec05ccd2449a5916b593906da4bebf754f2bc;hpb=ba5780c4a1d1337fd5247556cc9b8055d3f98754;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index fdaec05ccd..fe8422cc4a 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -5,14 +5,18 @@ * @brief The notifications module */ -require_once("include/NotificationsManager.php"); +use Friendica\App; +use Friendica\Core\NotificationsManager; +use Friendica\Core\System; +use Friendica\Database\DBM; + require_once("include/contact_selectors.php"); require_once("include/network.php"); function notifications_post(App $a) { if (! local_user()) { - goaway(z_root()); + goaway(System::baseUrl()); } $request_id = (($a->argc > 1) ? $a->argv[1] : 0); @@ -27,7 +31,7 @@ function notifications_post(App $a) { intval(local_user()) ); - if (dbm::is_result($r)) { + if (DBM::is_result($r)) { $intro_id = $r[0]['id']; $contact_id = $r[0]['contact-id']; }