From 048b648bff139effe1aaa969c25b52da94e47050 Mon Sep 17 00:00:00 2001 From: Joseph Orilogbon Date: Tue, 15 Dec 2015 08:54:21 +0100 Subject: [PATCH] - Restored Smarty_Internal_Data::getVariable(), but added deprecation message. --- libs/sysplugins/smarty_internal_data.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libs/sysplugins/smarty_internal_data.php b/libs/sysplugins/smarty_internal_data.php index 53f351b4..bba95d30 100644 --- a/libs/sysplugins/smarty_internal_data.php +++ b/libs/sysplugins/smarty_internal_data.php @@ -187,6 +187,21 @@ class Smarty_Internal_Data return $this->ext->getTemplateVars->getTemplateVars($this, $varName, $_ptr, $searchParents); } + /** + * gets the object of a Smarty variable + * + * @param string $variable the name of the Smarty variable + * @param Smarty_Internal_Data $_ptr optional pointer to data object + * @param boolean $searchParents search also in parent data + * @param bool $error_enable + * + * @return Smarty_Variable|Smarty_Undefined_Variable the object of the variable + * @deprecated since 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead. + */ + public function getVariable($variable = null, Smarty_Internal_Data $_ptr = null, $searchParents = true, $error_enable = true){ + return $this->ext->getTemplateVars->_getVariable($this, $variable, $_ptr, $searchParents, $error_enable); + } + /** * Follow the parent chain an merge template and config variables *