fixing my flub.

This commit is contained in:
Matthew Wilson 2006-02-12 19:55:08 +00:00
parent 80288a38b2
commit 3ed96bfafa

View file

@ -813,13 +813,13 @@ Sets the post to approved and sends any necessary notifications.
sub setStatusApproved {
my $self = shift;
$self->commit;
$self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply && ($session{form}{assetId} eq
"new"));
unless ($self->isPoster) {
WebGUI::MessageLog::addInternationalizedEntry($self->get("ownerUserId"),'',$self->session->url->getSiteURL().'/'.$self->getUrl,579);
}
$self->notifySubscribers unless ($self->session->form->process("func") eq 'add');
$self->commit;
$self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply && ($session->form->process('assetId') eq
"new"));
unless ($self->isPoster) {
WebGUI::MessageLog::addInternationalizedEntry($self->get("ownerUserId"),'',$self->session->url->getSiteURL().'/'.$self->getUrl,579);
}
$self->notifySubscribers unless ($self->session->form->process("func") eq 'add');
}