]> git.mxchange.org Git - friendica.git/commitdiff
only show the remote_self option if admin allows it
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 22 Dec 2013 18:30:09 +0000 (19:30 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 22 Dec 2013 18:30:09 +0000 (19:30 +0100)
mod/crepair.php
view/templates/crepair.tpl

index 1324185342c97382280a473caa9e5d73b27efff2..f8336ef0bacfc33e067932e116d9516d537024d3 100644 (file)
@@ -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'],
index 27c11fa922538ef22f6a27b6654b0cc68a5812d9..d53af5dad783d4a81b42bd21c6e4a19fbb36a679 100644 (file)
 <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="" />
 <div class="clear"></div>
-
+{{if $allow_remote_self eq 1}}
 <h4>{{$label_remote_self}}</h4>
 {{include file="field_checkbox.tpl" field=$remote_self}}
+{{/if}}
 
 <input type="submit" name="submit" value="{{$lbl_submit}}" />