diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-01 16:28:52 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-01 16:28:52 -0800 |
commit | 48cb5021c6bd7e65a13a0ff50a9e76f72da7d3a1 (patch) | |
tree | 425c3d26e864a760e52193aa9f8751a36c0d24a0 /modules/gallery/controllers | |
parent | 43985ea2fb137aa7d532617271e37d7c20def3c5 (diff) |
Add the scheduler component to the admin maintenance screen.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/admin_maintenance.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/controllers/admin_maintenance.php b/modules/gallery/controllers/admin_maintenance.php index 3062ea09..d9363d30 100644 --- a/modules/gallery/controllers/admin_maintenance.php +++ b/modules/gallery/controllers/admin_maintenance.php @@ -44,6 +44,8 @@ class Admin_Maintenance_Controller extends Admin_Controller { $view->content->task_definitions = task::get_definitions(); $view->content->running_tasks = ORM::factory("task") ->where("done", "=", 0)->order_by("updated", "DESC")->find_all(); + $view->content->schedule_definitions = + module::is_active("scheduler") ? scheduler::get_definitions() : ""; $view->content->finished_tasks = ORM::factory("task") ->where("done", "=", 1)->order_by("updated", "DESC")->find_all(); print $view; |