X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=template.php;h=239630cc8905af0a65e8c41563164626095362e0;hb=10db898ea08d5fb0b9a4b4f20e6ab146e38f947a;hp=897afc7418af59442d79fd65a6be11160625e9c9;hpb=ed24e4f9ececaa1b5cd4e68045f27956ebbb1938;p=wfpl.git diff --git a/template.php b/template.php index 897afc7..239630c 100644 --- a/template.php +++ b/template.php @@ -77,11 +77,12 @@ class tem { return; } + # move everything up to (but not including) ', substr($in, 0, 12)) == 0) { $in = substr($in, 12); return; @@ -89,7 +90,7 @@ class tem { $matches = array(); # this limits sub_template names to 50 chars - if(ereg('', substr($in, 0, 65), $matches)) { + if(ereg('^', substr($in, 0, 65), $matches)) { list($start_tag, $tag_name) = $matches; $out .= '~' . $tag_name . '~'; $in = substr($in, strlen($start_tag));