From 8e58529f3946bce67ce1ae02041017bd88b6096e Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 17 Dec 2011 15:24:42 +1300 Subject: [PATCH] BUGFIX: Don't throw errors if older modules aren't aware of the DataModel argument. --- control/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/Controller.php b/control/Controller.php index 3f4f92dda..ee2d9e8bd 100644 --- a/control/Controller.php +++ b/control/Controller.php @@ -115,7 +115,7 @@ class Controller extends RequestHandler { * @return SS_HTTPResponse The response that this controller produces, * including HTTP headers such as redirection info */ - function handleRequest(SS_HTTPRequest $request, DataModel $model) { + function handleRequest(SS_HTTPRequest $request, DataModel $model = null) { if(!$request) user_error("Controller::handleRequest() not passed a request!", E_USER_ERROR); $this->pushCurrent();