From bb64d12d9d71bb79d5ab0a57882353a09fd085af Mon Sep 17 00:00:00 2001 From: im-mi Date: Thu, 1 Sep 2016 00:35:52 -0400 Subject: [PATCH] Use TextFormattingEvent instead of raw BBCode formatter --- ext/pools/theme.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/pools/theme.php b/ext/pools/theme.php index 5edb3625..65194103 100644 --- a/ext/pools/theme.php +++ b/ext/pools/theme.php @@ -154,8 +154,9 @@ class PoolsTheme extends Themelet { } } - $bb = new BBCode(); - $page->add_block(new Block(html_escape($pool['title']), $bb->format($pool['description']), "main", 10)); + $tfe = new TextFormattingEvent($pool['description']); + send_event($tfe); + $page->add_block(new Block(html_escape($pool['title']), $tfe->formatted, "main", 10)); } }