From: Tobias Diekershoff Date: Sun, 22 Dec 2013 18:30:09 +0000 (+0100) Subject: only show the remote_self option if admin allows it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25d83f780d6112d79e54149194fecb9b44f17468;p=friendica.git only show the remote_self option if admin allows it --- 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}}