X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=template.php;h=07e6e121417ec2f38771fd6a3617bb56ff7b27c2;hb=71ab297cca8238bb0d81ec09bf67514ddc5a9a36;hp=c48d700047727eb988f18dba9e11fe724e8797b7;hpb=5130cc014131a3285c6614e06cfb5ad8098addf8;p=wfpl.git 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;