tpl_vars[$tpl_var] = new Smarty_Variable(null, $nocache); $data->tpl_vars[$tpl_var]->value = &$value; if ($data->_objType == 2 && $data->scope) { $data->ext->_updateScope->updateScope($data, $tpl_var); } } return $data; } }