From 23937ff1355f3f47f5b42dc3718db1615809371b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 5 Mar 2009 06:38:11 +0000 Subject: 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. --- modules/search/helpers/search_task.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/search/helpers') diff --git a/modules/search/helpers/search_task.php b/modules/search/helpers/search_task.php index 7aba640e..bc950624 100644 --- a/modules/search/helpers/search_task.php +++ b/modules/search/helpers/search_task.php @@ -36,6 +36,7 @@ class search_task_Core { return array(Task_Definition::factory() ->callback("search_task::update_index") ->name(t("Update Search Index")) + ->type("admin") ->description($remaining ? t("Search index is %percent% up-to-date", array("percent" => $percent)) -- cgit v1.2.3