nrueckmann / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

plugin|modifier inside capture block. #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
{* this code fails in smarty 3.1.21 *}
<html>
<head>
<title>Info</title>
</head>
<body>

{function test}
the quick brown fox jumps over the lazy dog
{/function}

{capture assign='foo1c'}{test|ucwords}{/capture}  {* plugin output to a 
modifier in a capture block *}
<p>foo1c = {$foo1c}</p>

</body>
</html>

Expected output: foo1c = The Quick Brown Fox Jumps Over The Lazy Dog

Actual output: 
Parse error: syntax error, unexpected 'list' (T_LIST), expecting ',' or ';' in 
/var/www/smarty_test/smarty/libs/sysplugins/smarty_internal_templatebase.php(157
) : eval()'d code on line 52

Fatal error: Uncaught --> Smarty: Invalid compiled template for 'index.tpl' <-- 
thrown in 
/var/www/smarty_test/smarty/libs/sysplugins/smarty_internal_templatebase.php on 
line 182

Versions: Smarty 3.1.21 on ubuntu 13.04 (PHP 5.5.3-1ubuntu2.6)

Original issue reported on code.google.com by calguy1...@gmail.com on 23 Nov 2014 at 1:19

GoogleCodeExporter commented 8 years ago
The fix is on Github at https://github.com/smarty-php/smarty in the master 
branch.
It will be included later in the 3.1.14 release.

Preferred location to report issues will be 
https://github.com/smarty-php/smarty/issues 

Original comment by Uwe.Tews@googlemail.com on 13 May 2015 at 5:54