mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-03 05:31:16 -04:00
Add the scheduler component to the admin maintenance screen.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user