aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-25 18:12:42 -0700
committerFriendika <info@friendika.com>2011-08-25 18:12:42 -0700
commit99ea045723b89a312db5227f0036c76d481e58a1 (patch)
tree44fafd9e4c81c84b9e75d5558a8f9c6324d4d040 /mod/contacts.php
parent21c03fb5220d2190a8a764d5430c6fa8bc013860 (diff)
downloadvolse-hubzilla-99ea045723b89a312db5227f0036c76d481e58a1.tar.gz
volse-hubzilla-99ea045723b89a312db5227f0036c76d481e58a1.tar.bz2
volse-hubzilla-99ea045723b89a312db5227f0036c76d481e58a1.zip
some minor work on contact edit page
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 8f851e9e0..5d72cff88 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -292,6 +292,9 @@ function contacts_content(&$a) {
$lblsuggest = (($r[0]['network'] === NETWORK_DFRN)
? '<div id="contact-suggest-wrapper"><a href="fsuggest/' . $r[0]['id'] . '" id="contact-suggest">' . t('Suggest friends') . '</a></div>' : '');
+ $poll_enabled = (($r[0]['network'] !== NETWORK_DIASPORA) ? true : false);
+
+ $nettype = '<div id="contact-edit-nettype">' . sprintf( t('Network type: %s'),network_to_name($r[0]['network'])) . '</div>';
$o .= replace_macros($tpl,array(
'$header' => t('Contact Editor'),
@@ -312,7 +315,9 @@ function contacts_content(&$a) {
'$lblsuggest' => $lblsuggest,
'$grps' => $grps,
'$delete' => t('Delete contact'),
- '$poll_interval' => contact_poll_interval($r[0]['priority']),
+ '$nettype' => $nettype,
+ '$poll_interval' => contact_poll_interval($r[0]['priority'],(! $poll_enabled)),
+ '$poll_enabled' => $poll_enabled,
'$lastupdtext' => t('Last updated: '),
'$updpub' => t('Update public posts: '),
'$last_update' => $last_update,