mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
Update NfoController and add missing route to web.php
This commit is contained in:
@@ -10,12 +10,17 @@ use Blacklight\utility\Utility;
|
||||
class NfoController extends BasePageController
|
||||
{
|
||||
/**
|
||||
* @param string $id
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function showNfo(Request $request)
|
||||
public function showNfo($id = '', Request $request)
|
||||
{
|
||||
if ($request->has('id')) {
|
||||
$rel = Release::getByGuid($request->input('id'));
|
||||
$this->setPrefs();
|
||||
|
||||
if ($id) {
|
||||
$rel = Release::getByGuid($id);
|
||||
|
||||
if (! $rel) {
|
||||
$this->show404();
|
||||
|
||||
Reference in New Issue
Block a user