fixing my flub.
This commit is contained in:
parent
80288a38b2
commit
3ed96bfafa
1 changed files with 7 additions and 7 deletions
|
|
@ -813,13 +813,13 @@ Sets the post to approved and sends any necessary notifications.
|
||||||
|
|
||||||
sub setStatusApproved {
|
sub setStatusApproved {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->commit;
|
$self->commit;
|
||||||
$self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply && ($session{form}{assetId} eq
|
$self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply && ($session->form->process('assetId') eq
|
||||||
"new"));
|
"new"));
|
||||||
unless ($self->isPoster) {
|
unless ($self->isPoster) {
|
||||||
WebGUI::MessageLog::addInternationalizedEntry($self->get("ownerUserId"),'',$self->session->url->getSiteURL().'/'.$self->getUrl,579);
|
WebGUI::MessageLog::addInternationalizedEntry($self->get("ownerUserId"),'',$self->session->url->getSiteURL().'/'.$self->getUrl,579);
|
||||||
}
|
}
|
||||||
$self->notifySubscribers unless ($self->session->form->process("func") eq 'add');
|
$self->notifySubscribers unless ($self->session->form->process("func") eq 'add');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue