diff --git a/core/control/RequestHandler.php b/core/control/RequestHandler.php index f4e25e4ab..82339cba9 100644 --- a/core/control/RequestHandler.php +++ b/core/control/RequestHandler.php @@ -133,7 +133,7 @@ class RequestHandler extends ViewableData { // But if we have more content on the URL and we don't know what to do with it, return an error. } else { - return $this->httpError(400, "I can't handle sub-URLs of a $this->class object."); + return $this->httpError(404, "I can't handle sub-URLs of a $this->class object."); } return $this; diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index d321cae71..a0a4d6e73 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -183,9 +183,7 @@ class ErrorPage extends Page { * @package cms */ class ErrorPage_Controller extends Page_Controller { - public function init() { - parent::init(); - + public function index() { Director::set_status_code($this->failover->ErrorCode ? $this->failover->ErrorCode : 404); } }