mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 03:08:53 +00:00
Shift to consistent, fluent response chains
This commit is contained in:
@@ -20,7 +20,7 @@ class ForumController extends BasePageController
|
||||
if ($this->isPostBack() && $request->has('addMessage') && $request->has('addSubject')) {
|
||||
Forumpost::add(0, $this->userdata->id, $request->input('addSubject'), $request->input('addMessage'));
|
||||
|
||||
return redirect('forum');
|
||||
return redirect()->to('forum');
|
||||
}
|
||||
|
||||
$lock = $unlock = null;
|
||||
@@ -36,13 +36,13 @@ class ForumController extends BasePageController
|
||||
if ($lock !== null) {
|
||||
Forumpost::lockUnlockTopic($lock, 1);
|
||||
|
||||
return redirect('forum');
|
||||
return redirect()->to('forum');
|
||||
}
|
||||
|
||||
if ($unlock !== null) {
|
||||
Forumpost::lockUnlockTopic($unlock, 0);
|
||||
|
||||
return redirect('forum');
|
||||
return redirect()->to('forum');
|
||||
}
|
||||
|
||||
$results = Forumpost::getBrowseRange();
|
||||
@@ -80,7 +80,7 @@ class ForumController extends BasePageController
|
||||
|
||||
$results = Forumpost::getPosts($id);
|
||||
if (\count($results) === 0) {
|
||||
return redirect('forum');
|
||||
return redirect()->to('forum');
|
||||
}
|
||||
|
||||
$meta_title = 'Forum Post';
|
||||
@@ -110,10 +110,10 @@ class ForumController extends BasePageController
|
||||
if ($id !== null) {
|
||||
Forumpost::deleteParent($id);
|
||||
|
||||
return redirect('forum');
|
||||
return redirect()->to('forum');
|
||||
}
|
||||
|
||||
return redirect('forum');
|
||||
return redirect()->to('forum');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user