diff options
author | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
commit | eab8a101e7a3fcbb41e01a574985e06c5a3775de (patch) | |
tree | 60f201da5984b0c3638d10da02bba42b61aa3177 /lib/smarty3/sysplugins/smarty_internal_method_createdata.php | |
parent | 7f38be342c1495aeca418286c15c25c18ac9e142 (diff) |
Updating Smarty
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_createdata.php')
-rw-r--r-- | lib/smarty3/sysplugins/smarty_internal_method_createdata.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_createdata.php b/lib/smarty3/sysplugins/smarty_internal_method_createdata.php index 600bc77..f950975 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_createdata.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_createdata.php @@ -29,16 +29,16 @@ class Smarty_Internal_Method_CreateData * variables * @param string $name optional data block name * - * @returns Smarty_Data data object + * @return \Smarty_Data data object */ public function createData(Smarty_Internal_TemplateBase $obj, Smarty_Internal_Data $parent = null, $name = null) { /* @var Smarty $smarty */ - $smarty = isset($this->smarty) ? $this->smarty : $obj; + $smarty = $obj->_getSmartyObj(); $dataObj = new Smarty_Data($parent, $smarty, $name); if ($smarty->debugging) { Smarty_Internal_Debug::register_data($dataObj); } return $dataObj; } -}
\ No newline at end of file +} |