Update PM\PMDelete page
This commit is contained in:
parent
931e51efee
commit
12e5ec980f
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue