remote-self: Moved the code in a single function and cleaned it up.

This commit is contained in:
Michael Vogel 2014-10-29 01:05:09 +01:00
commit 3e57954807
2 changed files with 59 additions and 126 deletions

View file

@ -157,8 +157,8 @@ function crepair_content(&$a) {
if ($contact['network'] == NETWORK_FEED)
$remote_self_options = array('0'=>t('No mirroring'), '1'=>t('Mirror as forwarded posting'), '2'=>t('Mirror as my own posting'));
elseif ($contact['network'] == NETWORK_DFRN)
$remote_self_options = array('0'=>t('No mirroring'), '1'=>t('Mirror as forwarded posting'));
elseif ($contact['network'] == NETWORK_DFRN)
$remote_self_options = array('0'=>t('No mirroring'), '2'=>t('Mirror as my own posting'));
$tpl = get_markup_template('crepair.tpl');
$o .= replace_macros($tpl, array(