Template variable replacement fails
Brought to you by:
fmarcia
My php file is:
<?php
include 'ets.php';
$page->item->parentText = "title";
$page->item->someText = "Some";
$page->item->one->something->inner->none = "";
printt($page, 'test.tpl');
?>
My template file is:
{mask:main}
{item}
{/mask}
{mask:item}
{one}
{/mask}
{mask:one}
{../someText}
{something}
{/mask}
{mask:inner}
one - {../../../parentText}<br/>
{/mask}
{mask:middle}
two - {../../../parentText}<br/>
{/mask}
{mask:something}
{inner}
{middle}
{/mask}
I expect to get the output of:
Some one - title
But instead I get the output:
inside parent -- missing
..
end
Some one -
If I put a {notdefined} tag before the {something} tag then the page is rendered correctly for some reason.
This bug is reproducable on ETS 3.06a
Logged In: NO
Oh, and just to clarify that output that I received, the ".." is there because I was printing the maskname in get_datatype.