From 25d83f780d6112d79e54149194fecb9b44f17468 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 22 Dec 2013 19:30:09 +0100 Subject: [PATCH] only show the remote_self option if admin allows it --- mod/crepair.php | 1 + view/templates/crepair.tpl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/crepair.php b/mod/crepair.php index 1324185342..f8336ef0ba 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -157,6 +157,7 @@ function crepair_content(&$a) { '$label_poll' => t('Poll/Feed URL'), '$label_photo' => t('New photo from this URL'), '$label_remote_self' => t('Remote Self'), + '$allow_remote_self' => get_config('system','allow_users_remote_self'), '$remote_self' => array('remote_self', t('Mirror postings from this contact'), $contact['remote_self'], t('Mark this contact as remote_self, this will cause friendica to repost new entries from this contact.')), '$contact_name' => $contact['name'], '$contact_nick' => $contact['nick'], diff --git a/view/templates/crepair.tpl b/view/templates/crepair.tpl index 27c11fa922..d53af5dad7 100644 --- a/view/templates/crepair.tpl +++ b/view/templates/crepair.tpl @@ -37,9 +37,10 @@
- +{{if $allow_remote_self eq 1}}

{{$label_remote_self}}

{{include file="field_checkbox.tpl" field=$remote_self}} +{{/if}} -- 2.39.5