only show the remote_self option if admin allows it

This commit is contained in:
Tobias Diekershoff 2013-12-22 19:30:09 +01:00
parent f515def280
commit 25d83f780d
2 changed files with 3 additions and 1 deletions

View file

@ -157,6 +157,7 @@ function crepair_content(&$a) {
'$label_poll' => t('Poll/Feed URL'), '$label_poll' => t('Poll/Feed URL'),
'$label_photo' => t('New photo from this URL'), '$label_photo' => t('New photo from this URL'),
'$label_remote_self' => t('Remote Self'), '$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.')), '$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_name' => $contact['name'],
'$contact_nick' => $contact['nick'], '$contact_nick' => $contact['nick'],

View file

@ -37,9 +37,10 @@
<label id="crepair-photo-label" class="crepair-label" for="crepair-photo">{{$label_photo}}</label> <label id="crepair-photo-label" class="crepair-label" for="crepair-photo">{{$label_photo}}</label>
<input type="text" id="crepair-photo" class="crepair-input" name="photo" value="" /> <input type="text" id="crepair-photo" class="crepair-input" name="photo" value="" />
<div class="clear"></div> <div class="clear"></div>
{{if $allow_remote_self eq 1}}
<h4>{{$label_remote_self}}</h4> <h4>{{$label_remote_self}}</h4>
{{include file="field_checkbox.tpl" field=$remote_self}} {{include file="field_checkbox.tpl" field=$remote_self}}
{{/if}}
<input type="submit" name="submit" value="{{$lbl_submit}}" /> <input type="submit" name="submit" value="{{$lbl_submit}}" />