From c7eb4f31381ca98ccc6f3b082c2520cc98842950 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Tue, 31 Jul 2012 15:43:01 +1200 Subject: [PATCH] BUG BBCodeParser wasnt working due to php4 lack of statics --- parsers/BBCodeParser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parsers/BBCodeParser.php b/parsers/BBCodeParser.php index c9618218e..891f74f51 100644 --- a/parsers/BBCodeParser.php +++ b/parsers/BBCodeParser.php @@ -144,7 +144,11 @@ class BBCodeParser extends TextParser { */ function parse() { $this->content = str_replace(array('&', '<', '>'), array('&', '<', '>'), $this->content); - $this->content = SSHTMLBBCodeParser::staticQparse($this->content); + + $p = new SSHTMLBBCodeParser(); + $this->content = $p->qparse($this->content); + unset($p); + $this->content = "

".$this->content."

"; $this->content = preg_replace('/(]*>)\s+/i', '\\1', $this->content);