Use TextFormattingEvent instead of raw BBCode formatter

This commit is contained in:
im-mi 2016-09-01 00:35:52 -04:00
parent bcef3fbc8f
commit bb64d12d9d

View File

@ -154,8 +154,9 @@ class PoolsTheme extends Themelet {
} }
} }
$bb = new BBCode(); $tfe = new TextFormattingEvent($pool['description']);
$page->add_block(new Block(html_escape($pool['title']), $bb->format($pool['description']), "main", 10)); send_event($tfe);
$page->add_block(new Block(html_escape($pool['title']), $tfe->formatted, "main", 10));
} }
} }