-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
include breaks block content / template extending #215
Comments
On first sight, this seems to be related with #200. |
Updated comment: |
This bug is fixed in the master branch and will later be included in 3.1.30 |
Thanks for your quick reaction and bugfix. Now working as intended. 👍 |
Including extending files in an extended file is not possible any more (was working as of Smarty 3.1.13, I do not know the latest working version).
PHP Version: 7.0.4 (seems to be version independent down to 5.4)
Smarty: 3.1.29
Given the following scenario (see attached files for an example):
include-sample.zip
Templates:
Including "included-extended.tpl" in "start.tpl" leads to wrong block values when displaying start-extended.tpl: start-extended.tpl will be completely ignored.
Example 1
start.tpl:
start-extended.tpl:
included.tpl:
included-extended.tpl:
Expected output of start-extended.tpl:
Real output of start-extended.tpl:
Example 2
start.tpl:
The other files have not been changed.
Output start-extended.tpl (this is the expected behavior):
Example 3
Smarty version 3.1.13
Same code as in example 1, this is the expected behavior:
The text was updated successfully, but these errors were encountered: