mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}}
This commit is contained in:
@@ -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