You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using {make_nocache} in a template with a parent that was included from another parent, I get unexpected uncompiled Smarty code in the final HTML output.
When using
{make_nocache}
in a template with a parent that was included from another parent, I get unexpected uncompiled Smarty code in the final HTML output.This is using Smarty 3.1.31.
Simple test case:
PHP
page1.tpl
layout.tpl
{include file="{$dir}/layout_base.tpl" myvar2=$myvar}
layout_base.tpl
Hello world {make_nocache $myvar2} Bye world
Expected output
I expect the following output:
Actual output
Instead I get:
Misc
Interestingly enough, if I put the code from layout_base.tpl into layout.tpl instead, it does work as expected.
Also, if I insert
<?>
into layout_base.tpl, the undesired code also seems to disappear.I.e.
Hello world {make_nocache $myvar2} Bye world <?>
Outputs
The text was updated successfully, but these errors were encountered: