From 6dbd36d1ccc482ff542884da0cdc60612436c002 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 6 Jul 2009 10:29:55 -0700 Subject: Always log the task completion status message --- modules/gallery/helpers/task.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gallery/helpers/task.php') 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()); -- cgit v1.2.3