- improvement move often used code snippets into methods

This commit is contained in:
uwetews
2016-09-11 04:35:52 +02:00
parent e62b40c421
commit 0a8e47ecb2
47 changed files with 124 additions and 77 deletions
@@ -34,7 +34,7 @@ class Smarty_Internal_Method_CreateData
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);