diff options
author | friendica <info@friendica.com> | 2013-01-03 16:48:18 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-03 16:48:18 -0800 |
commit | 13ec589f80018ba623e6593656a0053c7200d5e8 (patch) | |
tree | 7b3b81d1d8fbf5843317c477951008aea72903e7 /mod/connections.php | |
parent | e03f6cb975c965dcd741e0d0a121238a5f838b3d (diff) | |
download | volse-hubzilla-13ec589f80018ba623e6593656a0053c7200d5e8.tar.gz volse-hubzilla-13ec589f80018ba623e6593656a0053c7200d5e8.tar.bz2 volse-hubzilla-13ec589f80018ba623e6593656a0053c7200d5e8.zip |
add refresh to connection edit menu, and notify of communication issues
Diffstat (limited to 'mod/connections.php')
-rw-r--r-- | mod/connections.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/connections.php b/mod/connections.php index b8cfb5daa..a12f51e68 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -171,7 +171,8 @@ function connections_content(&$a) { } if($cmd === 'refresh') { - zot_refresh($orig_record[0],get_app()->get_channel()); + if(! zot_refresh($orig_record[0],get_app()->get_channel())) + notice( t('Refresh failed - channel is currently unavailable.') ); goaway($a->get_baseurl(true) . '/connections/' . $contact_id); } @@ -247,6 +248,13 @@ function connections_content(&$a) { ), array( + 'label' => t('Refresh Permissions'), + 'url' => $a->get_baseurl(true) . '/connections/' . $contact['abook_id'] . '/refresh', + 'sel' => '', + 'title' => t('Fetch updated permissions'), + ), + + array( 'label' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? t('Unblock') : t('Block')), 'url' => $a->get_baseurl(true) . '/connections/' . $contact['abook_id'] . '/block', 'sel' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? 'active' : ''), |