summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/task.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/task.php b/core/helpers/task.php
index 051cc76d..32af10bf 100644
--- a/core/helpers/task.php
+++ b/core/helpers/task.php
@@ -35,10 +35,10 @@ class task_Core {
return $tasks;
}
- static function create($task_definitions, $context) {
+ static function create($task_def, $context) {
$task = ORM::factory("task");
- $task->callback = $task_definitions->callback;
- $task->name = $task_definitions->name;
+ $task->callback = $task_def->callback;
+ $task->name = $task_def->name;
$task->percent_complete = 0;
$task->status = "";
$task->state = "started";