diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-06 10:29:55 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-06 10:29:55 -0700 |
commit | 6dbd36d1ccc482ff542884da0cdc60612436c002 (patch) | |
tree | cc5911f567ef8a9d2158efa1300748c254652d2d | |
parent | f381927ec6bca75e9c588725318f6682bf74d103 (diff) |
Always log the task completion status message
-rw-r--r-- | modules/gallery/helpers/task.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/task.php b/modules/gallery/helpers/task.php index 06568887..6a9f63c2 100644 --- a/modules/gallery/helpers/task.php +++ b/modules/gallery/helpers/task.php @@ -79,6 +79,9 @@ class task_Core { try { $task->state = "running"; call_user_func_array($task->callback, array(&$task)); + if ($task->done) { + $task->log($task->status); + } $task->save(); } catch (Exception $e) { $task->log($e->__toString()); |