MINOR Rename setModel to setDataModel due to API changes

This commit is contained in:
Sean Harvey 2012-05-01 14:46:16 +12:00
parent 6d77709704
commit 7c54c60311
3 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class ContentController extends Controller {
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
$child = null;
$action = $request->param('Action');
$this->setModel($model);
$this->setDataModel($model);
// If nested URLs are enabled, and there is no action handler for the current request then attempt to pass
// control to a child controller. This allows for the creation of chains of controllers which correspond to a

View File

@ -38,7 +38,7 @@ class ModelAsController extends Controller implements NestedController {
*/
public function handleRequest(SS_HTTPRequest $request, DataModel $model) {
$this->request = $request;
$this->setModel($model);
$this->setDataModel($model);
$this->pushCurrent();

View File

@ -106,7 +106,7 @@ class RootURLController extends Controller {
*/
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
self::$is_at_root = true;
$this->setModel($model);
$this->setDataModel($model);
$this->pushCurrent();
$this->init();