From 72fa5736ff611407c995aac19b06f6bf8c2f8a31 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 16 Jan 2009 04:49:56 +0000 Subject: Rename Change xxx_task::available() to xxx_task::available_tasks() Fix a bug in admin_maintenance.html.php where we were only showing the first task --- core/controllers/admin_maintenance.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/controllers') diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php index 18eb644c..077bf098 100644 --- a/core/controllers/admin_maintenance.php +++ b/core/controllers/admin_maintenance.php @@ -26,8 +26,8 @@ class Admin_Maintenance_Controller extends Admin_Controller { $tasks = array(); foreach (module::installed() as $module_name => $module_info) { $class_name = "{$module_name}_task"; - if (method_exists($class_name, "available")) { - foreach (call_user_func(array($class_name, "available")) as $task) { + if (method_exists($class_name, "available_tasks")) { + foreach (call_user_func(array($class_name, "available_tasks")) as $task) { $tasks[$task->callback] = $task; } } -- cgit v1.2.3