summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-06 10:29:55 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-06 10:29:55 -0700
commit6dbd36d1ccc482ff542884da0cdc60612436c002 (patch)
treecc5911f567ef8a9d2158efa1300748c254652d2d
parentf381927ec6bca75e9c588725318f6682bf74d103 (diff)
Always log the task completion status message
-rw-r--r--modules/gallery/helpers/task.php3
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());