BUGFIX: Don't throw errors if older modules aren't aware of the DataModel argument.

This commit is contained in:
Sam Minnee 2011-12-17 15:24:42 +13:00
parent 288369f1a9
commit 8e58529f39

View File

@ -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();