summaryrefslogtreecommitdiff
path: root/core/helpers/core_task.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-05 06:38:11 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-05 06:38:11 +0000
commit23937ff1355f3f47f5b42dc3718db1615809371b (patch)
tree8702b9645ef24e9d789edb83eb67354e84041729 /core/helpers/core_task.php
parent898ac3ac359258ccb0958f5be420d17a9a264fec (diff)
Avoid using default task types. Require task::get_definitions() to
specify a single type and ask for it appropriately in admin_maintenance. Specify a type for every existing task.
Diffstat (limited to 'core/helpers/core_task.php')
-rw-r--r--core/helpers/core_task.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/helpers/core_task.php b/core/helpers/core_task.php
index 008c593f..785bf874 100644
--- a/core/helpers/core_task.php
+++ b/core/helpers/core_task.php
@@ -23,6 +23,7 @@ class core_task_Core {
return array(Task_Definition::factory()
->callback("core_task::rebuild_dirty_images")
->name(t("Rebuild Images"))
+ ->type("admin")
->description($dirty_count ?
t2("You have one out of date photo",
"You have %count out of date photos",