mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 10:28:50 +00:00
Refactor bbcode() into BBCode::convert()
This commit is contained in:
parent
f4e38b6ee9
commit
91fd77af3b
12 changed files with 37 additions and 23 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
require_once 'include/bbcode.php';
|
||||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -31,7 +32,7 @@ function newmemberwidget_network_mod_init ( $a, $b) {
|
|||
$t .= '<a href="'.$a->get_baseurl().'/profile/'.Config::get('newmemberwidget','localsupport').'" target="_new">'.L10n::t('Local Support Forum').'</a><br />'.EOL;
|
||||
$ft = Config::get('newmemberwidget','freetext');
|
||||
if (!trim($ft)=="")
|
||||
$t .= '<p>'.bbcode(trim($ft)).'</p>';
|
||||
$t .= '<p>'.BBCode::convert(trim($ft)).'</p>';
|
||||
$t .= '</div><div class="clear"></div>';
|
||||
$a->page['aside'] = $t . $a->page['aside'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue