mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}}
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
28/10/2010
|
||||
- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}}
|
||||
|
||||
27/10/2010
|
||||
- bugfix default parameter values did not work for template functions included with {include}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
||||
*/
|
||||
public function compile($args, $compiler)
|
||||
{
|
||||
$_index = explode(',', str_replace(array(']['), array(','), substr($args, 1, strlen($args)-2)));
|
||||
$_index = preg_split("/\]\[/",substr($args, 1, strlen($args)-2));
|
||||
$compiled_ref = ' ';
|
||||
$variable = trim($_index[0], "'");
|
||||
switch ($variable) {
|
||||
|
Reference in New Issue
Block a user