summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-11 03:29:12 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-11 03:29:12 +0000
commit30239ed302c571efb0cd9c86625be30fce5b4bd9 (patch)
tree30c71ec50da97bd8f1d81a52633e535ab78c3255
parent8da729cfa1ed17040720ddeefbfd6f4ec541bc9c (diff)
$task_definitions -> $task_def
-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";