]> git.mxchange.org Git - friendica.git/blobdiff - mod/notify.php
Move login() to Login module
[friendica.git] / mod / notify.php
index 867ead9fa76354fd5b6ba59c2a77bbda4b07da79..913f83f9beef777ef70277b7834ceec5ba78feea 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\NotificationsManager;
 use Friendica\Core\System;
-
-require_once('include/NotificationsManager.php');
+use Friendica\Database\DBM;
+use Friendica\Module\Login;
 
 function notify_init(App $a) {
        if (! local_user()) {
@@ -45,7 +46,7 @@ function notify_init(App $a) {
 
 function notify_content(App $a) {
        if (! local_user()) {
-               return login();
+               return Login::form();
        }
 
        $nm = new NotificationsManager();
@@ -56,7 +57,7 @@ function notify_content(App $a) {
        require_once('include/bbcode.php');
 
        $r = $nm->getAll(array('seen'=>0));
-       if (dbm::is_result($r) > 0) {
+       if (DBM::is_result($r) > 0) {
                foreach ($r as $it) {
                        $notif_content .= replace_macros($not_tpl,array(
                                '$item_link' => System::baseUrl(true).'/notify/view/'. $it['id'],