diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-16 05:01:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-16 05:01:22 +0000 |
commit | 622da5f3cdf7ccb979334e42e115f0538c8dd00b (patch) | |
tree | fb63029be35bedc5ff7a15201c2f6b0c39522d3f /core/controllers/admin_maintenance.php | |
parent | 72fa5736ff611407c995aac19b06f6bf8c2f8a31 (diff) |
Rename Task to Task_Definition to avoid confusion with Task_Model.
Order the finished tasks by update time in the task list.
Diffstat (limited to 'core/controllers/admin_maintenance.php')
-rw-r--r-- | core/controllers/admin_maintenance.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php index 077bf098..cd1682cc 100644 --- a/core/controllers/admin_maintenance.php +++ b/core/controllers/admin_maintenance.php @@ -59,8 +59,10 @@ class Admin_Maintenance_Controller extends Admin_Controller { $view = new Admin_View("admin.html"); $view->content = new View("admin_maintenance.html"); $view->content->task_definitions = $this->_get_task_definitions(); - $view->content->running_tasks = ORM::factory("task")->where("done", 0)->find_all(); - $view->content->finished_tasks = ORM::factory("task")->where("done", 1)->find_all(); + $view->content->running_tasks = + ORM::factory("task")->where("done", 0)->orderby("updated", "desc")->find_all(); + $view->content->finished_tasks = + ORM::factory("task")->where("done", 1)->orderby("updated", "desc")->find_all(); $view->content->csrf = access::csrf_token(); print $view; } |