mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- bugfix on complex indexed special Smarty variables
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
11/04/2009
|
||||
- added typecasting support for template variables
|
||||
- bugfix on complex indexed special Smarty variables
|
||||
|
||||
11/03/2009
|
||||
- fixed parser error on objects with special smarty vars
|
||||
|
@@ -21,7 +21,7 @@ class Smarty_Internal_Compile_Special_Smarty_Variable extends Smarty_Internal_Co
|
||||
*/
|
||||
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 = ' ';
|
||||
switch (trim($_index[0], "'")) {
|
||||
case 'foreach':
|
||||
|
Reference in New Issue
Block a user