Home » HTML » HTML_Template_Sigma » Bug #1489
text enclosed in {} vanishes
Details
| Submitted | 2004-05-24 21:44 UTC |
|---|---|
| From | lord_damokles at gmx dot net |
| Status | Bogus |
| Package | HTML_Template_Sigma |
| PHP Version | 4.3.6 |
| OS | win98se |
| Roadmaps | (Not assigned) |
Comments
[2004-05-24 21:44 UTC] lord_damokles at gmx dot net
Description:
------------
If I set a Variable then all {[a-zA-Z0-9_]}-blocks are removed when they are parsed. (see code)
Of course I know that recursion would be a problem, but it would be a great help if they could be preserved or even better get parsed.
Reproduce code:
---------------
First possibility:
$tpl->setVariable ("test","This {is} a test.");
$tpl->parse();
Second possibility:
$tpl->setVariable ("is","was");
$tpl->setVariable ("test","This {is} a test.");
$tpl->parse();
Expected result:
----------------
1.
This {is} a test.
2.
This was a test.
Actual result:
--------------
This a test.