Skip to content
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

[v3.1.21] blocks are not rendered correctly #18

Closed
lunika opened this issue Mar 16, 2015 · 1 comment
Closed

[v3.1.21] blocks are not rendered correctly #18

lunika opened this issue Mar 16, 2015 · 1 comment

Comments

@lunika
Copy link

lunika commented Mar 16, 2015

Hi,

I'm currently in version 3.1.19 and I use the inheritance system of Smarty for extending my templates.I'm using a global layout which is extended by each template.

In this layout I have "blank" or default block and I override them in my page. For example the title page.

in the layout.tpl (the global layout) :

{block name="check-auth"}
    {check_auth role="ADMIN" resource="{block name="check-resource"}{/block}" module="{block name="check-module"}{/block}" access="{block name="check-access"}{/block}" login_tpl="/admin/login"}
{/block}

check_auth is a custom function I wrote as a smarty plugin and in each template page I override the check-resource and check-module block with a template-specific value.

in my page :

{block name="check-resource"}admin.order{/block}
{block name="check-access"}update{/block}

in version 3.1.19 of smarty, the first block will be compiled like this :

<?php ob_start();?>admin.order<?php $_tmp1=ob_get_clean();?> 

in 3.1.21 :

<?php ob_start();
admin.order
$_tmp1=ob_get_clean();?>

There is obviously a syntax error.

I think this is a regression, it seems you change the way smarty compiles the template, I have less compiled files in version 3.1.21 than in version 3.1.19

Did you already fix this in master branch ?

Thanks

@lunika lunika changed the title [v3.1.21] block are not render correctly [v3.1.21] blocks are not rendered correctly Mar 16, 2015
@uwetews uwetews closed this as completed Mar 17, 2015
@lunika
Copy link
Author

lunika commented Mar 17, 2015

Thank you.

think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
…t-easier-to-find-reservations-which-have-undecided-push-type

Ticket #5098 make it easier to find reservations which have undecided push type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants