From 03c88ba020d955b77ffee43b0804890c65883528 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 19 Nov 2008 23:28:28 +0000 Subject: [PATCH] Return an HTTPResponse consistently from controllers git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66267 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/ModelAsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/control/ModelAsController.php b/core/control/ModelAsController.php index e0d4122b0..bbf1d1ea3 100644 --- a/core/control/ModelAsController.php +++ b/core/control/ModelAsController.php @@ -72,7 +72,7 @@ class ModelAsController extends Controller implements NestedController { return $controller; } else { - return "The requested page couldn't be found."; + return new HTTPResponse("The requested page couldn't be found.",404); } } else {