MINOR: Remove default paramenter from handleRequest() so it complies with the interface correctly. Fixes E_STRICT warning.

This commit is contained in:
Andrew O'Neil 2012-04-11 17:20:49 +12:00
parent daab8f4cbc
commit d368f3605b

View File

@ -122,7 +122,7 @@ class Controller extends RequestHandler implements TemplateGlobalProvider {
* @return SS_HTTPResponse The response that this controller produces,
* including HTTP headers such as redirection info
*/
function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
function handleRequest(SS_HTTPRequest $request, DataModel $model) {
if(!$request) user_error("Controller::handleRequest() not passed a request!", E_USER_ERROR);
$this->pushCurrent();