From c9f2a0d26eca4d5587efa2a0e1d18fbd61a8c303 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Tue, 28 Jul 2015 01:39:08 +0200 Subject: [PATCH] - update for PHP 7 compatibility --- change_log.txt | 3 +++ libs/Smarty.class.php | 2 +- libs/sysplugins/smarty_internal_templatecompilerbase.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index 12c2bb29..f8fdfeb4 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 83b848f3..4f3d85e8 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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 diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index 2037f913..f1c7d74f 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -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)); }