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

plugins can't have a parameter called 'assign' in 3.1.30 #292

Closed
mossadal opened this issue Sep 14, 2016 · 1 comment
Closed

plugins can't have a parameter called 'assign' in 3.1.30 #292

mossadal opened this issue Sep 14, 2016 · 1 comment

Comments

@mossadal
Copy link

I stumbled over something that took me quite some time to track down.

In 3.1.30, creating a plugin like

function smarty_function_dummy(array $params, Smarty_Internal_Template $template)
{
    return "test";
}

and calling it via {dummy assign=x} results in no output in the resulting html file.

This worked fine in 3.1.29. (I have a bunch of plugins where I'm actually using a parameter named assign to do something useful.)

uwetews added a commit that referenced this issue Sep 15, 2016
…gn='bar'} did not output returned content because

           because assumption was made that it was assigned to a variable #292
@uwetews
Copy link
Contributor

uwetews commented Sep 15, 2016

function plugins called with assign attribute like {foo assign='bar'} did not output returned content because assumption was made that it was assigned to a variable

This is now fixed in the master branch

@uwetews uwetews closed this as completed Sep 15, 2016
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