merging new forum into message board

This commit is contained in:
JT Smith 2003-10-13 22:10:11 +00:00
parent 880e48f75f
commit 332f28e219
7 changed files with 327 additions and 111 deletions

View file

@ -21,6 +21,7 @@ sub create {
lastPostDate=>$post->get("dateOfPost")
});
$self->{_post}{$post->get("forumPostId")} = $post;
$self->getForum->incrementThreads($post->get("dateOfPost"),$post->get("forumPostId"));
return $self;
}
@ -75,7 +76,7 @@ sub incrementReplies {
my ($self, $dateOfReply, $replyId) = @_;
WebGUI::SQL->write("update forumThread set replies=replies+1, lastPostId=$replyId, lastPostDate=$dateOfReply
where forumThreadId=".$self->get("forumThreadId"));
$self->getForum->incrementReplies;
$self->getForum->incrementReplies($dateOfReply,$replyId);
}
sub incrementViews {