$r = $nm->setAllSeen();
$j = json_encode(['result' => ($r) ? 'success' : 'fail']);
echo $j;
- killme();
+ exit();
}
}
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) {