From 2fb44fdbeee8deabf0ff06011a2a9589a81d68d1 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Tue, 15 Jan 2019 15:05:57 -0600 Subject: [PATCH] Return backend 404 from files controller --- modules/backend/controllers/Files.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/backend/controllers/Files.php b/modules/backend/controllers/Files.php index 97a68ee69..b2399102a 100644 --- a/modules/backend/controllers/Files.php +++ b/modules/backend/controllers/Files.php @@ -1,7 +1,8 @@ setStatusCode(404)->run('/404'); + return Response::make(View::make('backend::404'), 404); } /** @@ -48,7 +49,7 @@ class Files extends Controller } catch (Exception $ex) {} - return App::make('Cms\Classes\Controller')->setStatusCode(404)->run('/404'); + return Response::make(View::make('backend::404'), 404); } /** @@ -110,7 +111,7 @@ class Files extends Controller if (!$file = FileModel::find((int) $id)) { throw new ApplicationException('Unable to find file'); } - + /** * Ensure that the file model utilized for this request is * the one specified in the relationship configuration @@ -135,4 +136,4 @@ class Files extends Controller return $file; } -} +} \ No newline at end of file