- fix [ 1488598 ] edit workflow broken

- fix [ 1488561 ] webggui
 - fix [ 1488557 ] new styles are missing ^/; in link
 - fix [ 1488530 ] search has no toolbar
 - fix [ 1488663 ] Add new subscription broken
 - fix [ 1485461 ] Internationalized the Date in Mail headers
 - fix [ 1488518 ] Snippet has no cacheTimeout field
 - fix [ 1486788 ] karma isn't working on forums
This commit is contained in:
JT Smith 2006-05-16 15:40:35 +00:00
parent 6c2d4c8914
commit cdb018a0bf
8 changed files with 105 additions and 5 deletions

View file

@ -145,9 +145,9 @@ sub commit {
$self->getThread->unarchive if ($self->getThread->get("status") eq "archived");
$self->notifySubscribers;
if ($self->isNew) {
if ($self->session->setting->get("enableKarma") && $self->getThread->getParent->get("karmaPerPost")) {
if ($self->session->setting->get("useKarma") && $self->getThread->getParent->get("karmaPerPost")) {
my $u = WebGUI::User->new($self->session, $self->get("ownerUserId"));
$u->addKarma($self->getThread->getParent->get("karmaPerPost"), $self->getId, "Collaboration post");
$u->karma($self->getThread->getParent->get("karmaPerPost"), $self->getId, "Collaboration post");
}
$self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply);
}