[Phpslash-commit] CVS: phpslash-ft/class Comment.class,1.31,1.32
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-09-16 21:18:49
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv10203/phpslash-ft/class Modified Files: Comment.class Log Message: commentEdit arguments Index: Comment.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Comment.class,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** Comment.class 13 Sep 2002 15:43:12 -0000 1.31 --- Comment.class 16 Sep 2002 21:18:46 -0000 1.32 *************** *** 1076,1081 **** * */ ! function commentEdit() { ! global $story_id,$comment_id,$parent_id; $this->db->query("SELECT name, --- 1076,1081 ---- * */ ! function commentEdit($ary='') { ! // global $story_id,$comment_id,$parent_id; $this->db->query("SELECT name, *************** *** 1084,1089 **** comment_text FROM psl_comment ! WHERE story_id = '$story_id' ! AND comment_id = '$comment_id'"); if ($this->db->next_record()) { --- 1084,1089 ---- comment_text FROM psl_comment ! WHERE story_id = '$ary[story_id]' ! AND comment_id = '$ary[comment_id]'"); if ($this->db->next_record()) { *************** *** 1094,1100 **** $ary['subject'] = clean($this->db->f("subject")); $ary['comment_text'] = clean($this->db->f("comment_text")); ! $ary['story_id'] = $story_id; ! $ary['parent_id'] = $parent_id; ! $ary['comment_id'] = $comment_id; return $this->getForm($ary); --- 1094,1100 ---- $ary['subject'] = clean($this->db->f("subject")); $ary['comment_text'] = clean($this->db->f("comment_text")); ! // $ary['story_id'] = $story_id; ! // $ary['parent_id'] = $parent_id; ! // $ary['comment_id'] = $comment_id; return $this->getForm($ary); |