if($rr['fid']) {
$return_addr = bin2hex($a->user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : ''));
- $notif_content .= replace_macros($sugg,array(
+
+ $notif_content .= replace_macros($sugg, array(
'$str_notifytype' => t('Notification type: '),
'$notify_type' => t('Friend Suggestion'),
'$intro_id' => $rr['intro_id'],
'$note' => $rr['note'],
'$request' => $rr['frequest'] . '?addr=' . $return_addr,
'$ignore' => t('Ignore'),
- '$discard' => t('Discard')
+ '$discard' => t('Discard'),
));
));
}
- $notif_content .= replace_macros($tpl,array(
+ $notif_content .= replace_macros($tpl, array(
'$str_notifytype' => t('Notification type: '),
'$notify_type' => (($rr['network'] !== NETWORK_OSTATUS) ? t('Friend/Connect Request') : t('New Follower')),
'$dfrn_text' => $dfrn_text,
'$approve' => t('Approve'),
'$note' => $rr['note'],
'$ignore' => t('Ignore'),
- '$discard' => t('Discard')
+ '$discard' => t('Discard'),
));
}
else
info( t('No introductions.') . EOL);
- $o .= replace_macros($notif_tpl,array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Notifications'),
'$tabs' => $tabs,
'$notif_content' => $notif_content,
$notif_content = '';
- if (count($r) > 0) {
+ if ($r) {
foreach ($r as $it) {
switch($it['verb']){
$notif_content = t('No more network notifications.');
}
- $o .= replace_macros($notif_tpl,array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Network Notifications'),
'$tabs' => $tabs,
'$notif_content' => $notif_content,
$notif_content .= t('No more system notifications.');
}
- $o .= replace_macros($notif_tpl,array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('System Notifications'),
'$tabs' => $tabs,
'$notif_content' => $notif_content,
$notif_content = t('No more personal notifications.');
}
- $o .= replace_macros($notif_tpl,array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Personal Notifications'),
'$tabs' => $tabs,
'$notif_content' => $notif_content,
$notif_content = t('No more home notifications.');
}
- $o .= replace_macros($notif_tpl,array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Home Notifications'),
'$tabs' => $tabs,
'$notif_content' => $notif_content,