Use TextFormattingEvent instead of raw BBCode formatter
This commit is contained in:
parent
bcef3fbc8f
commit
bb64d12d9d
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user