- update for PHP 7 compatibility

This commit is contained in:
Uwe Tews
2015-07-28 01:39:08 +02:00
parent fe4fdd15d8
commit c9f2a0d26e
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
 ===== 3.1.28-dev===== (xx.xx.2015)
28.07.2015
- update for PHP 7 compatibility
26.07.2015
- improvement impement workaround for HHVM PHP incompatibillity https://github.com/facebook/hhvm/issues/4797

View File

@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.28-dev/32';
const SMARTY_VERSION = '3.1.28-dev/33';
/**
* define variable scopes

View File

@@ -575,7 +575,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (!is_array($function)) {
return $function($new_args, $this);
} elseif (is_object($function[0])) {
return $this->smarty->registered_plugins[$plugin_type][$tag][0][0]->$function[1]($new_args, $this);
return $this->smarty->registered_plugins[$plugin_type][$tag][0][0]->{$function[1]}($new_args, $this);
} else {
return call_user_func_array($function, array($new_args, $this));
}