Small change
This commit is contained in:
parent
f3320ffa9d
commit
decb014b9c
2 changed files with 8 additions and 3 deletions
|
@ -65,7 +65,8 @@ class NewUser extends Users
|
|||
|
||||
$this->c->users->insert($user);
|
||||
|
||||
return $this->c->Redirect->page('User', ['id' => $user->id, 'name' => $user->username])->message('New user added redirect');
|
||||
return $this->c->Redirect->page('User', ['id' => $user->id, 'name' => $user->username])
|
||||
->message('New user added redirect');
|
||||
}
|
||||
|
||||
$this->fIswev = $v->getErrors();
|
||||
|
|
|
@ -55,10 +55,14 @@ class Delete extends Page
|
|||
}
|
||||
|
||||
if ($deleteTopic) {
|
||||
$redirect = $this->c->Redirect->page('Forum', ['id' => $topic->forum_id, 'name' => $topic->parent->forum_name])->message('Topic del redirect');
|
||||
$redirect = $this->c->Redirect
|
||||
->page('Forum', ['id' => $topic->forum_id, 'name' => $topic->parent->forum_name])
|
||||
->message('Topic del redirect');
|
||||
$this->c->topics->delete($topic);
|
||||
} else {
|
||||
$redirect = $this->c->Redirect->page('ViewPost', ['id' => $this->c->posts->previousPost($post)])->message('Post del redirect');
|
||||
$redirect = $this->c->Redirect
|
||||
->page('ViewPost', ['id' => $this->c->posts->previousPost($post)])
|
||||
->message('Post del redirect');
|
||||
$this->c->posts->delete($post);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue