This repository has been archived by the owner on Dec 4, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move topic reply page to action class.
- Loading branch information
1 parent
c9138da
commit 4199151
Showing
3 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace FluxBB\Actions; | ||
|
||
use Symfony\Component\HttpFoundation\Request; | ||
use FluxBB\Models\Topic; | ||
|
||
class ReplyPage extends Page | ||
{ | ||
protected $viewName = 'fluxbb::posting.post'; | ||
|
||
|
||
protected function handleRequest(Request $request) | ||
{ | ||
$tid = \Route::input('id'); | ||
|
||
// Fetch some info about the topic | ||
$topic = Topic::with('forum.perms')->findOrFail($tid); | ||
|
||
$this->data['topic'] = $topic; | ||
$this->data['action'] = trans('fluxbb::post.post_a_reply'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters