Changeset 2714
- Timestamp:
- 04/30/05 01:28:14 (4 years ago)
- Files:
-
- animanga/trunk/lib/Animanga/Data.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
animanga/trunk/lib/Animanga/Data.pm
r2710 r2714 581 581 uid => $uid 582 582 }); 583 584 # update the root and increase the replycount585 if($pid != -1) {586 $self->update("comments", {587 lid => $cid,588 latest => $now,589 -replycount => "replycount + 1",590 }, {591 cid => $pid592 });593 }594 583 595 584 # update forums comment/thread count … … 615 604 # if we're not a thread root, update the root and increase the replycount 616 605 if($pid != -1) { 617 my $super cid = $self->superParent($cid);606 my $superpid = $self->superParent($cid); 618 607 619 608 $self->update("comments", { … … 622 611 -replycount => "replycount + 1", 623 612 }, { 624 cid => $super cid613 cid => $superpid 625 614 }); 626 615 }
