Update PM\PMDelete page

This commit is contained in:
Visman 2021-04-03 23:05:20 +07:00
parent 931e51efee
commit 12e5ec980f

View file

@ -92,18 +92,16 @@ class PMDelete extends AbstractPM
->message('Dialogue del redirect');
$topic->status = Cnst::PT_DELETED;
$this->pms->delete($topic);
} else {
$redirect = $this->c->Redirect
->url($post->linkPrevious)
->message('Message del redirect');
$this->pms->delete($post);
$topic->calcStat();
}
$this->pms->update(Cnst::PTOPIC, $topic);
$this->pms->updateFromPTopics(false, $topic);
return $redirect;
}