require_once("include/contact_selectors.php");
require_once("include/network.php");
-function notifications_post(&$a) {
+function notifications_post(App &$a) {
- if(! local_user()) {
+ if (! local_user()) {
goaway(z_root());
}
intval(local_user())
);
- if(dbm::is_result($r)) {
+ if (dbm::is_result($r)) {
$intro_id = $r[0]['id'];
$contact_id = $r[0]['contact-id'];
}
}
}
-function notifications_content(&$a) {
+function notifications_content(App &$a) {
- if(! local_user()) {
+ if (! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
$notif_nocontent = sprintf( t('No more %s notifications.'), $notifs['ident']);
}
-
$o .= replace_macros($notif_tpl, array(
'$notif_header' => $notif_header,
'$tabs' => $tabs,