Refactor bbcode() into BBCode::convert()

This commit is contained in:
Hypolite Petovan 2018-02-14 21:43:40 -05:00
parent f4e38b6ee9
commit 91fd77af3b
12 changed files with 37 additions and 23 deletions

View file

@ -8,6 +8,7 @@
* Author: Cat Gray <https://free-haven.org/profile/catness>
*/
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
@ -182,7 +183,7 @@ function dwpost_send(&$a,&$b) {
require_once('include/bbcode.php');
$title = $b['title'];
$post = bbcode($b['body']);
$post = BBCode::convert($b['body']);
$post = xmlify($post);
$tags = dwpost_get_tags($b['tag']);