mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Don't throw errors if older modules aren't aware of the DataModel argument.
This commit is contained in:
parent
288369f1a9
commit
8e58529f39
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user