finish "ifpending" connections
This commit is contained in:
parent
97f0424b18
commit
32e71cf06b
@ -162,7 +162,7 @@ EOT;
|
|||||||
$nav['home']['mark'] = array('', t('Mark all channel notifications seen'), '','');
|
$nav['home']['mark'] = array('', t('Mark all channel notifications seen'), '','');
|
||||||
|
|
||||||
|
|
||||||
$nav['intros'] = array('connections/pending', t('Connections'), "", t('Connections'));
|
$nav['intros'] = array('connections/ifpending', t('Connections'), "", t('Connections'));
|
||||||
|
|
||||||
|
|
||||||
$nav['notifications'] = array('notifications/system', t('Notices'), "", t('Notifications'));
|
$nav['notifications'] = array('notifications/system', t('Notices'), "", t('Notifications'));
|
||||||
|
@ -225,11 +225,14 @@ function connections_content(&$a) {
|
|||||||
$head = t('New');
|
$head = t('New');
|
||||||
$pending = true;
|
$pending = true;
|
||||||
nav_set_selected('intros');
|
nav_set_selected('intros');
|
||||||
|
$a->argv[1] = 'pending';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$head = t('All');
|
$head = t('All');
|
||||||
$search_flags = 0;
|
$search_flags = 0;
|
||||||
$all = true;
|
$all = true;
|
||||||
|
$a->argc = 1;
|
||||||
|
unset($a->argv[1]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'unconnected':
|
case 'unconnected':
|
||||||
@ -341,7 +344,7 @@ function connections_content(&$a) {
|
|||||||
intval(ABOOK_FLAG_SELF),
|
intval(ABOOK_FLAG_SELF),
|
||||||
intval(XCHAN_FLAGS_DELETED)
|
intval(XCHAN_FLAGS_DELETED)
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if($r) {
|
||||||
$a->set_pager_total($r[0]['total']);
|
$a->set_pager_total($r[0]['total']);
|
||||||
$total = $r[0]['total'];
|
$total = $r[0]['total'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user