moved _extract setting to assign functions

This commit is contained in:
mohrt
2001-06-13 15:19:10 +00:00
parent d0c32ad4e7
commit 86abe89de2
3 changed files with 6 additions and 2 deletions

View File

@@ -209,7 +209,6 @@ function smarty_func_assign($vars,&$smarty_obj)
{
extract($vars);
$smarty_obj->assign($var,$val);
$smarty_obj->_extract = true;
return true;
}
@@ -221,7 +220,6 @@ function smarty_func_unassign($vars,&$smarty_obj)
{
extract($vars);
$smarty_obj->clear_assign($var);
$smarty_obj->_extract = true;
return true;
}

View File

@@ -205,6 +205,7 @@ class Smarty
if (!empty($tpl_var) && isset($value))
$this->_tpl_vars[$tpl_var] = $value;
}
$this->_extract = true;
}
@@ -229,6 +230,7 @@ class Smarty
$this->_tpl_vars[$tpl_var][] = $value;
}
}
$this->_extract = true;
}
@@ -243,6 +245,7 @@ class Smarty
unset($this->_tpl_vars[$curr_var]);
else
unset($this->_tpl_vars[$tpl_var]);
$this->_extract = true;
}

View File

@@ -205,6 +205,7 @@ class Smarty
if (!empty($tpl_var) && isset($value))
$this->_tpl_vars[$tpl_var] = $value;
}
$this->_extract = true;
}
@@ -229,6 +230,7 @@ class Smarty
$this->_tpl_vars[$tpl_var][] = $value;
}
}
$this->_extract = true;
}
@@ -243,6 +245,7 @@ class Smarty
unset($this->_tpl_vars[$curr_var]);
else
unset($this->_tpl_vars[$tpl_var]);
$this->_extract = true;
}