Skip to content

Commit

Permalink
Reset the db_store on each pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Kriete authored and Pascal Kriete committed Nov 9, 2008
1 parent 6500c1a commit 62e375b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions application/libraries/SP_Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ function SP_Parser()
define(T_OPEN, $this->l_delim);
define(T_CLOSE, $this->r_delim);

$this->dynamic_parsed = FALSE;
$this->dynamic = array('category', 'forum', 'thread', 'post', 'member');
$this->dynamic = array(
'category',
'forum',
'thread',
'post',
'member'
);

// The dynamic content needs an id
$id = end($this->CI->uri->segment_array());
Expand All @@ -43,6 +48,9 @@ function SP_Parser()
*/
function parse($text, $nest_vars = array())
{
// New one for each template
$this->db_store = array();

// Start out by eval'ing normal php to allow for
// complex logic that the parser cannot handle
$text = $this->_parse_php($text);
Expand Down

0 comments on commit 62e375b

Please sign in to comment.