BUG BBCodeParser wasnt working due to php4 lack of statics

This commit is contained in:
Hamish Friedlander 2012-07-31 15:43:01 +12:00
parent 3483d10369
commit c7eb4f3138

View File

@ -144,7 +144,11 @@ class BBCodeParser extends TextParser {
*/
function parse() {
$this->content = str_replace(array('&', '<', '>'), array('&amp;', '&lt;', '&gt;'), $this->content);
$this->content = SSHTMLBBCodeParser::staticQparse($this->content);
$p = new SSHTMLBBCodeParser();
$this->content = $p->qparse($this->content);
unset($p);
$this->content = "<p>".$this->content."</p>";
$this->content = preg_replace('/(<p[^>]*>)\s+/i', '\\1', $this->content);