X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotify.php;h=87035817841d637b957037051ca087b34a9551ba;hb=8db9b0987eb6b2bf6f46efcb2a523be240246bdf;hp=b7e2faf1c98ad722f39e5517246393520d87c342;hpb=91facd2d0a2869e2c26a5943d8afe1849d3891f8;p=friendica.git diff --git a/mod/notify.php b/mod/notify.php index b7e2faf1c9..8703581784 100644 --- a/mod/notify.php +++ b/mod/notify.php @@ -48,7 +48,7 @@ function notify_init(App $a) $r = $nm->setAllSeen(); $j = json_encode(['result' => ($r) ? 'success' : 'fail']); echo $j; - killme(); + exit(); } } @@ -58,11 +58,13 @@ function notify_content(App $a) return Login::form(); } + $notif_content = ''; + $nm = new NotificationsManager(); - $notif_tpl = get_markup_template('notifications.tpl'); + $notif_tpl = Renderer::getMarkupTemplate('notifications.tpl'); - $not_tpl = get_markup_template('notify.tpl'); + $not_tpl = Renderer::getMarkupTemplate('notify.tpl'); $r = $nm->getAll(['seen'=>0]); if (DBA::isResult($r) > 0) {