Home » HTML » HTML_Template_IT » Bug #4759
$ [output error]
Details
| Submitted | 2005-07-06 15:55 UTC |
|---|---|
| From | rob at focusonline dot com |
| Assigned | pajoye |
| Status | Bogus |
| Package | HTML_Template_IT |
| PHP Version | 4.3.11 |
| OS | Red Hat ES3 |
| Roadmaps | (Not assigned) |
Comments
[2005-07-06 15:55 UTC] rob at focusonline dot com
Description:
------------
When we use the '$' before any template variable several characters are cut out of the display. This is particularly harmful when a price is being displayed.
Reproduce code:
---------------
logic file:
$tpl->setVariable("price", "85.00");
template file:
the price is ${price}
Expected result:
----------------
the price is $85.00
Actual result:
--------------
the price is .00
[2005-07-06 19:26 UTC] pierre at dotgeek dot org
Thank you for taking the time to write to us, but this is not
a bug.
Set use_preg and preserve_data to false in the options, that will solve your problem (and the upcoming ones ;).
--Pierre