Permalink
Browse files

MINOR Rename setModel to setDataModel due to API changes

  • Loading branch information...
1 parent 6d77709 commit 7c54c603110c083cf661b271dcf8f242baa5963d @halkyon halkyon committed May 1, 2012
@@ -136,7 +136,7 @@ public function init() {
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
@@ -38,7 +38,7 @@ public function init() {
*/
public function handleRequest(SS_HTTPRequest $request, DataModel $model) {
$this->request = $request;
- $this->setModel($model);
+ $this->setDataModel($model);
$this->pushCurrent();
@@ -106,7 +106,7 @@ public static function reset() {
*/
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
self::$is_at_root = true;
- $this->setModel($model);
+ $this->setDataModel($model);
$this->pushCurrent();
$this->init();

0 comments on commit 7c54c60

Please sign in to comment.