aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connections.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-01-15 12:08:04 +0100
committerMario Vavti <mario@mariovavti.com>2016-01-15 12:08:04 +0100
commitd36aa4fc89f99dc408e356347e74eead746f3e53 (patch)
tree40981ab6d04f9f0389cba076e354a342ac4adf11 /mod/connections.php
parentf4e1b2123aed39e3f863ee327b27cb0e7f17520c (diff)
downloadvolse-hubzilla-d36aa4fc89f99dc408e356347e74eead746f3e53.tar.gz
volse-hubzilla-d36aa4fc89f99dc408e356347e74eead746f3e53.tar.bz2
volse-hubzilla-d36aa4fc89f99dc408e356347e74eead746f3e53.zip
provide a recent activity link in /connections
Diffstat (limited to 'mod/connections.php')
-rw-r--r--mod/connections.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/connections.php b/mod/connections.php
index 3297ae8f8..f43dec73e 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -255,7 +255,7 @@ function connections_content(&$a) {
'name' => $rr['xchan_name'],
'classes' => (intval($rr['abook_archived']) ? 'archived' : ''),
'link' => z_root() . '/connedit/' . $rr['abook_id'],
- 'deletelink' => z_root() . '/connedit/' . $rr['abook_id'] . '/drop',
+ 'deletelink' => z_root() . '/connedit/' . intval($rr['abook_id']) . '/drop',
'delete' => t('Delete'),
'url' => chanlink_url($rr['xchan_url']),
'webbie_label' => t('Channel address'),
@@ -268,7 +268,9 @@ function connections_content(&$a) {
'connected_label' => t('Connected'),
'connected' => datetime_convert('UTC',date_default_timezone_get(),$rr['abook_created'], 'c'),
'approve_hover' => t('Approve connection'),
- 'approve' => (($rr['abook_pending']) ? t('Approve') : false)
+ 'approve' => (($rr['abook_pending']) ? t('Approve') : false),
+ 'recent_label' => t('Recent activity'),
+ 'recentlink' => z_root() . '/network/?f=&cid=' . intval($rr['abook_id'])
);
}
}