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