From a6cb25020bb5200cc3c00ecc941ddb751644fbcc Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 6 Dec 2015 23:12:37 +0100 Subject: add missing smarty files --- .../sysplugins/smarty_internal_runtime_var.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 library/Smarty/libs/sysplugins/smarty_internal_runtime_var.php (limited to 'library/Smarty/libs/sysplugins/smarty_internal_runtime_var.php') diff --git a/library/Smarty/libs/sysplugins/smarty_internal_runtime_var.php b/library/Smarty/libs/sysplugins/smarty_internal_runtime_var.php new file mode 100644 index 000000000..fe4f94d91 --- /dev/null +++ b/library/Smarty/libs/sysplugins/smarty_internal_runtime_var.php @@ -0,0 +1,33 @@ +tpl_vars[$varName])) { + $tpl->tpl_vars[$varName] = new Smarty_Variable(array(), $nocache); + } else { + $tpl->tpl_vars[$varName] = clone $tpl->tpl_vars[$varName]; + if (!(is_array($tpl->tpl_vars[$varName]->value) || + $tpl->tpl_vars[$varName]->value instanceof ArrayAccess) + ) { + settype($tpl->tpl_vars[$varName]->value, 'array'); + } + } + } +} -- cgit v1.2.3