b079824a16526dcb4fbd920fbee7b1afdc452934

Author: gwoo

Date: 2009-06-25 08:14:05 -0700

fixing error in dashboard

diff --git a/controllers/dashboard_controller.php b/controllers/dashboard_controller.php index 872e4a1..76833ca 100755 --- a/controllers/dashboard_controller.php +++ b/controllers/dashboard_controller.php @@ -51,10 +51,7 @@ class DashboardController extends AppController { $this->passedArgs['type'] = null; } - $this->Timeline->recursive = -1; - $timeline = $this->paginate(); - - $this->set('timeline', $this->Timeline->related($timeline)); + $this->set('timeline', $this->paginate('Timeline')); } function feed() { @@ -72,10 +69,7 @@ class DashboardController extends AppController { $this->paginate['conditions']['Timeline.model'] = Inflector::classify($this->passedArgs['type']); } - $this->Timeline->recursive = -1; - $data = $this->paginate(); - - $this->set('feed', $this->Timeline->related($data)); + $this->set('feed', $this->paginate('Timeline')); } function admin_index() { @@ -92,10 +86,7 @@ class DashboardController extends AppController { $this->passedArgs['type'] = null; } - $this->Timeline->recursive = -1; - $timeline = $this->paginate(); - - $this->set('timeline', $this->Timeline->related($timeline)); + $this->set('timeline', $this->paginate('Timeline')); } }