Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv10513
Modified Files:
Comment.class Submission.class
Log Message:
Comments are better, cleaned out some extra junk in Submission class.
Index: Comment.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Comment.class,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Comment.class 2001/09/25 19:23:53 1.18
--- Comment.class 2001/10/09 23:23:05 1.19
***************
*** 73,81 ****
));
! $this->comment_mode_array = array ("Threaded" => "thread",
! "Flat" => "flat",
! "Index" => "index",
! "Nested" => "nested",
! "No Comments" => "none");
}
--- 73,83 ----
));
! $this->comment_mode_array = array (
! pslgetText("Threaded") => "thread",
! pslgetText("Flat") => "flat",
! pslgetText("Index") => "index",
! pslgetText("Nested") => "nested",
! pslgetText("No Comments") => "none"
! );
}
***************
*** 200,204 ****
* Formats ONE comment for display
*
- *
* This function takes the stuff out of "ary" and returns one comment using
* the template.
--- 202,205 ----
***************
*** 266,270 ****
if ($index) {
$this->ctempl->set_var(array(
! MODE => "nested"
));
$this->ctempl->parse(OUT,"indexcomment");
--- 267,271 ----
if ($index) {
$this->ctempl->set_var(array(
! MODE => "thread"
));
$this->ctempl->parse(OUT,"indexcomment");
Index: Submission.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Submission.class,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Submission.class 2001/09/06 17:18:22 1.5
--- Submission.class 2001/10/09 23:23:05 1.6
***************
*** 43,56 ****
if ($this->db->next_record()) {
! $subject = $this->db->Record["title"];
! $story = $this->db->Record["intro_text"];
! $name = $this->db->Record["name"];
! $email = $this->db->Record["email"];
!
! $ary[subject] = $subject;
! $ary[story] = $story;
! $ary[name] = $name;
! $ary[email] = $email;
! $ary[datef] = $datef;
$this->showSubmission($ary);
--- 43,51 ----
if ($this->db->next_record()) {
! $ary[subject] = $this->db->f("title");
! $ary[story] = $this->db->f("intro_text");
! $ary[name] = $this->db->f("name");
! $ary[email] = $this->db->f("email");
! $ary[datef] = $this->db->f("datef");
$this->showSubmission($ary);
|