- bugfix on complex indexed special Smarty variables

This commit is contained in:
Uwe.Tews
2009-11-04 17:54:00 +00:00
parent caac4bb841
commit db0767a71e
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
11/04/2009 11/04/2009
- added typecasting support for template variables - added typecasting support for template variables
- bugfix on complex indexed special Smarty variables
11/03/2009 11/03/2009
- fixed parser error on objects with special smarty vars - fixed parser error on objects with special smarty vars

View File

@@ -21,7 +21,7 @@ class Smarty_Internal_Compile_Special_Smarty_Variable extends Smarty_Internal_Co
*/ */
public function compile($args, $compiler) public function compile($args, $compiler)
{ {
$_index = explode(',', str_replace(array('][', '[', ']'), array(',', '', ''), $args)); $_index = explode(',', str_replace(array(']['), array(','), substr($args,1,strlen($args)-2)));
$compiled_ref = ' '; $compiled_ref = ' ';
switch (trim($_index[0], "'")) { switch (trim($_index[0], "'")) {
case 'foreach': case 'foreach':