summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-02-07 21:40:34 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-02-07 21:40:34 -0800
commitb8047db5393ddbe27d6ee391845802054b92bf79 (patch)
tree0f65fd859f4eb9999d31665f9cbe4b20eb506a02
parent316b0583b374a5754ea112c00464d118917cdbc1 (diff)
Revert "Add the scheduler component to the admin maintenance screen."
This reverts commit 48cb5021c6bd7e65a13a0ff50a9e76f72da7d3a1.
-rw-r--r--modules/gallery/controllers/admin_maintenance.php2
-rw-r--r--modules/gallery/views/admin_maintenance.html.php8
2 files changed, 0 insertions, 10 deletions
diff --git a/modules/gallery/controllers/admin_maintenance.php b/modules/gallery/controllers/admin_maintenance.php
index 487e77a6..d90fe0ea 100644
--- a/modules/gallery/controllers/admin_maintenance.php
+++ b/modules/gallery/controllers/admin_maintenance.php
@@ -44,8 +44,6 @@ 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;
diff --git a/modules/gallery/views/admin_maintenance.html.php b/modules/gallery/views/admin_maintenance.html.php
index 15d04caa..ac597715 100644
--- a/modules/gallery/views/admin_maintenance.html.php
+++ b/modules/gallery/views/admin_maintenance.html.php
@@ -33,20 +33,12 @@
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
<?= t("run") ?>
</a>
- <? if (module::is_active("scheduler")): ?>
- <a href="<?= url::site("form/add/admin/schedule/$task->callback?csrf=$csrf") ?>"
- class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
- <?= t("schedule") ?>
- </a>
- <? endif ?>
</td>
</tr>
<? endforeach ?>
</table>
</div>
- <?= $schedule_definitions ?>
-
<? if ($running_tasks->count()): ?>
<div id="g-running-tasks">
<h2> <?= t("Running tasks") ?> </h2>