Refactor bbcode() into BBCode::convert()
This commit is contained in:
parent
29f5270313
commit
0c52866693
21 changed files with 89 additions and 73 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
|
@ -246,7 +247,7 @@ function poco_init(App $a) {
|
|||
$about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']);
|
||||
if (is_null($about)) {
|
||||
require_once 'include/bbcode.php';
|
||||
$about = bbcode($contact['about'], false, false);
|
||||
$about = BBCode::convert($contact['about'], false);
|
||||
Cache::set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue