php4 has problems (or treats it maybe differently) with "{$"-sequence.
apply patch from webmasters.net.
this
$newParent .= "{$MacroName}\n";
becomes this
$newParent .= '{'."$MacroName}\n";
have a look at the patch.
you should not omitt the curly braces! how would you distinguish the following:
<p>MAIN POWER SUPPLY</p>
(...)
MAIN
(...)
in place of
<p>MAIN POWER SUPPLY</p>
(...)
{MAIN}
(...)
maybe Trapleuning's proposal is also good. but, if it is an error in php4, it may be fixed soon? then it won't work any longer! webmaster's proposal seems to be better since it will work be it an error or not, fixed or not.
Trapleuning wrote:
I have version 1.1.0 width php4.
had same prob.
altered line 199 of class.FastTemplate.php3 to
$template = ereg_replace("{{$key}}","$val","$template");
works fine
thx for the tip!