diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-16 04:49:56 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-16 04:49:56 +0000 |
commit | 72fa5736ff611407c995aac19b06f6bf8c2f8a31 (patch) | |
tree | 5f6f3ba40988f9ceaddf4acaab3d394849b7bc1c /core/controllers | |
parent | b2e37f20c73f7f29bafca9bcf95c1e59902a50ee (diff) |
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
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/admin_maintenance.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |