The EOL constant is removed #1291

Merged
annando merged 2 commits from no-eol into develop 2022-10-18 16:16:07 +02:00
3 changed files with 7 additions and 8 deletions

View file

@ -25,16 +25,16 @@ function newmemberwidget_network_mod_init (App $a, $b)
return; return;
} }
$t = '<div id="newmember_widget" class="widget">'.EOL; $t = '<div id="newmember_widget" class="widget">';
$t .= '<h3>'.DI::l10n()->t('New Member').'</h3>'.EOL; $t .= '<h3>'.DI::l10n()->t('New Member').'</h3>';
$t .= '<a href="newmember" id="newmemberwidget-tips">' . DI::l10n()->t('Tips for New Members') . '</a><br />'.EOL; $t .= '<a href="newmember" id="newmemberwidget-tips">' . DI::l10n()->t('Tips for New Members') . '</a><br />';
if (DI::config()->get('newmemberwidget','linkglobalsupport', false)) { if (DI::config()->get('newmemberwidget','linkglobalsupport', false)) {
$t .= '<a href="https://forum.friendi.ca/profile/helpers" target="_new">'.DI::l10n()->t('Global Support Forum').'</a><br />'.EOL; $t .= '<a href="https://forum.friendi.ca/profile/helpers" target="_new">'.DI::l10n()->t('Global Support Forum').'</a><br />';
} }
if (DI::config()->get('newmemberwidget','linklocalsupport', false)) { if (DI::config()->get('newmemberwidget','linklocalsupport', false)) {
$t .= '<a href="'.DI::baseUrl()->get().'/profile/'.DI::config()->get('newmemberwidget','localsupport').'" target="_new">'.DI::l10n()->t('Local Support Forum').'</a><br />'.EOL; $t .= '<a href="'.DI::baseUrl()->get().'/profile/'.DI::config()->get('newmemberwidget','localsupport').'" target="_new">'.DI::l10n()->t('Local Support Forum').'</a><br />';
} }
$ft = DI::config()->get('newmemberwidget','freetext', ''); $ft = DI::config()->get('newmemberwidget','freetext', '');

View file

@ -146,7 +146,7 @@ function statusnet_settings_post(App $a, $post)
DI::pConfig()->set(local_user(), 'statusnet', 'baseapi', $asn['apiurl']); DI::pConfig()->set(local_user(), 'statusnet', 'baseapi', $asn['apiurl']);
//DI::pConfig()->set(local_user(), 'statusnet', 'application_name', $asn['applicationname'] ); //DI::pConfig()->set(local_user(), 'statusnet', 'application_name', $asn['applicationname'] );
} else { } else {
DI::sysmsg()->addNotice(DI::l10n()->t('Please contact your site administrator.<br />The provided API URL is not valid.') . EOL . $asn['apiurl']); DI::sysmsg()->addNotice(DI::l10n()->t('Please contact your site administrator.<br />The provided API URL is not valid.') . '<br />' . $asn['apiurl']);
} }
} }
} }

View file

@ -248,8 +248,7 @@ function wppost_send(App $a, array &$b)
$wp_backlink = intval(DI::pConfig()->get($b['uid'],'wppost','backlink')); $wp_backlink = intval(DI::pConfig()->get($b['uid'],'wppost','backlink'));
if($wp_backlink && $b['plink']) { if($wp_backlink && $b['plink']) {
$post .= EOL . EOL . '<a href="' . $b['plink'] . '">' $post .= '<p><a href="' . $b['plink'] . '">' . $wp_backlink_text . '</a></p>';
. $wp_backlink_text . '</a>' . EOL . EOL;
} }
$post = XML::escape($post); $post = XML::escape($post);