Update NfoController and add missing route to web.php

This commit is contained in:
DariusIII
2018-04-27 14:03:41 +02:00
parent 656be9bdcb
commit 384223582c
4 changed files with 12 additions and 6 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-04-27 DariusIII
* Chg: Update NfoController and add missing route to web.php
* Chg: Update CartController, use redirect instead of 404 page when no data is found on store function
* Chg: Update getNzb PHPDOC block
* Chg: Use laravel's response for nzb downloads
+1 -1
View File
@@ -34,7 +34,7 @@ class BrowseController extends BasePageController
$this->smarty->assign('results', $results);
$meta_title = 'Browse Nzbs';
$meta_title = 'Browse All Releases';
$meta_keywords = 'browse,nzb,description,details';
$meta_description = 'Browse for Nzbs';
+8 -3
View File
@@ -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();
+2 -2
View File
@@ -103,9 +103,9 @@ Route::get('music/{id?}', 'MusicController@show');
Route::post('music/{id?}', 'MusicController@show');
Route::get('nfo', 'NfoController@showNfo');
Route::get('nfo/{id?}', 'NfoController@showNfo');
Route::post('nfo', 'NfoController@showNfo');
Route::post('nfo/{id?}', 'NfoController@showNfo');
Route::get('xxx/{id?}', 'AdultController@show');