Changeset 2714

Show
Ignore:
Timestamp:
04/30/05 01:28:14 (4 years ago)
Author:
morris
Message:

Don't update the pid, we're only looking to bump the superpid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • animanga/trunk/lib/Animanga/Data.pm

    r2710 r2714  
    581581                uid                             => $uid 
    582582        }); 
    583  
    584         # update the root and increase the replycount 
    585         if($pid != -1) { 
    586                 $self->update("comments", { 
    587                         lid         => $cid, 
    588                         latest      => $now, 
    589                         -replycount     => "replycount + 1", 
    590                 }, { 
    591                         cid                     => $pid 
    592                 }); 
    593         } 
    594583 
    595584        # update forums comment/thread count 
     
    615604        # if we're not a thread root, update the root and increase the replycount 
    616605        if($pid != -1) { 
    617                 my $supercid = $self->superParent($cid); 
     606                my $superpid = $self->superParent($cid); 
    618607 
    619608                $self->update("comments", { 
     
    622611                        -replycount  => "replycount + 1", 
    623612                }, { 
    624                         cid         => $supercid 
     613                        cid         => $superpid 
    625614                }); 
    626615        }