Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv4666/phpslash-ft/public_html
Modified Files:
article.php3
Log Message:
article.php3 checks to see if the Comment module is loaded before quering/parsing the comments
Index: article.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/article.php3,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** article.php3 20 Sep 2002 16:23:46 -0000 1.68
--- article.php3 29 Oct 2002 11:07:17 -0000 1.69
***************
*** 159,169 ****
/* Now the comments */
!
! $cmtary['mode'] = $ary['mode'];
! $cmtary['order'] = $ary['order'];
! $cmtary['story_id'] = $ary['story_id'];
! $cmtary['parent_id'] = $ary['parent_id'];
! $cmt = new Comment($cmtary);
! $comments = $cmt->getAllComments($cmtary);
$t->set_var('COMMENTS', $comments);
--- 159,173 ----
/* Now the comments */
!
! if ($_PSL['module']['Comment']) {
! $cmtary['mode'] = $ary['mode'];
! $cmtary['order'] = $ary['order'];
! $cmtary['story_id'] = $ary['story_id'];
! $cmtary['parent_id'] = $ary['parent_id'];
! $cmt = new Comment($cmtary);
! $comments = $cmt->getAllComments($cmtary);
! } else {
! $comments = '';
! }
$t->set_var('COMMENTS', $comments);
|