diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-09-27 22:50:04 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-09-27 22:50:04 -0600 |
commit | bb74d2f3609b9ffc0877eaec16ef19c04af97ce2 (patch) | |
tree | 912ccf266758492b81d9838bf9b98631a203d1c3 /modules/gallery/helpers/gallery_task.php | |
parent | 6cd8679dec24cd643fa3c2d9bdbf6ac8b938600c (diff) | |
parent | ab5e680265dfe9c42bd4d6fb8d1d9fccd95eed7b (diff) |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/gallery_task.php')
-rw-r--r-- | modules/gallery/helpers/gallery_task.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php index 3d0476a8..1ff26c35 100644 --- a/modules/gallery/helpers/gallery_task.php +++ b/modules/gallery/helpers/gallery_task.php @@ -48,11 +48,13 @@ class gallery_task_Core { $errors = array(); try { $result = graphics::find_dirty_images_query(); - $total_count = $task->get("total_count", -1); - if ($total_count < 0) { - $total_count = $result->count(); + $total_count = $task->get("total_count", $result->count()); + $mode = $task->get("mode", "init"); + if ($mode == "init") { $task->set("total_count", $total_count); + $task->get("mode", "process"); } + $completed = $task->get("completed", 0); $ignored = $task->get("ignored", array()); |