From 905c960a5a7d8b93121050306228001e1cfaebf3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 13 May 2002 18:17:44 +0000 Subject: [PATCH] corrected some leftover from the last change (app_session and not more HTTP_POST_VARS) in the template-test function show --- etemplate/inc/class.editor.inc.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index 72dc0a2ac6..3455d56709 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -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),'');