corrected some leftover from the last change (app_session and not more HTTP_POST_VARS) in the template-test function show

This commit is contained in:
Ralf Becker 2002-05-13 18:17:44 +00:00
parent 59f2990851
commit 905c960a5a

View File

@ -391,11 +391,12 @@
);
if (!$msg && isset($post_vars['values']) && !isset($post_vars['vals']))
{
$cont = $this->etemplate->process_show($post_vars);
$cont = $post_vars['cont'];
$this->etemplate->process_show($cont); // need to be done manually as name is set to $this->etemplate object
for ($r = 1; list($key,$val) = @each($cont); ++$r)
{
$vals["A$r"] = $key;
$vals["B$r"] = $val;
$vals["@$r"] = $key;
$vals["A$r"] = $val;
}
$show->data[$show->rows]['A']['name'] = 'etemplate.editor.values';
$show->data[$show->rows]['A']['size'] = 'vals';
@ -405,11 +406,11 @@
{
$show->data[$show->rows]['A']['name'] = $this->etemplate;
$vals = $post_vars['vals'];
$olds = unserialize(stripslashes($post_vars['olds']));
$olds = $post_vars['olds']; //unserialize(stripslashes($post_vars['olds']));
for ($r = 1; isset($vals["B$r"]); ++$r)
for ($r = 1; isset($vals["A$r"]); ++$r)
{
$content['cont'][$olds["A$r"]] = $vals["B$r"];
$content['cont'][$olds["@$r"]] = $vals["A$r"];
}
}
$show->exec('etemplate.editor.show',$content,array(),$no_buttons,array('olds' => $vals),'');