From: Josh Grams Date: Thu, 6 Aug 2009 14:08:24 +0000 (-0400) Subject: * template.php (parse_template): every tag preceded by string. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=71ab297cca8238bb0d81ec09bf67514ddc5a9a36;p=wfpl.git * template.php (parse_template): every tag preceded by string. --- diff --git a/template.php b/template.php index c48d700..07e6e12 100644 --- a/template.php +++ b/template.php @@ -76,6 +76,7 @@ function parse_template($string) { if(last($args) == '{') { # open block array_pop($args); # drop '{' + if(!is_string(last($tem['pieces']))) $tem['pieces'][] = ''; $tem =& tem_push($tem); # create a new sub-template $tem['parent']['pieces'][] =& $tem; # as a piece of the parent $tem['name'] = $name;