Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG BBCodeParser wasnt working due to php4 lack of statics

  • Loading branch information...
commit c7eb4f31381ca98ccc6f3b082c2520cc98842950 1 parent 3483d10
@hafriedlander hafriedlander authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 parsers/BBCodeParser.php
View
6 parsers/BBCodeParser.php
@@ -144,7 +144,11 @@ function useable_tagsHTML(){
*/
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);
Please sign in to comment.
Something went wrong with that request. Please try again.