diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-26 14:32:39 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-26 14:32:39 -0700 |
commit | b8624ba71af69c7708b09479a5964126cf97d796 (patch) | |
tree | 02535394d142f182ab9f45c5a58c8b18e8f8e4b5 | |
parent | ada451f78743351804d40f3527f1d0b19541aad9 (diff) | |
parent | e496e5f6bfa943a0f7e663c94d97bf071f61153d (diff) |
Merge branch 'master' into talmdal_dev
-rw-r--r-- | modules/gallery/helpers/gallery_task.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php index 1ff26c35..95216cf0 100644 --- a/modules/gallery/helpers/gallery_task.php +++ b/modules/gallery/helpers/gallery_task.php @@ -52,7 +52,8 @@ class gallery_task_Core { $mode = $task->get("mode", "init"); if ($mode == "init") { $task->set("total_count", $total_count); - $task->get("mode", "process"); + $task->set("mode", "process"); + batch::start(); } $completed = $task->get("completed", 0); @@ -101,6 +102,7 @@ class gallery_task_Core { if ($task->percent_complete == 100) { $task->done = true; $task->state = "success"; + batch::stop(); site_status::clear("graphics_dirty"); } } catch (Exception $e) { |