summaryrefslogtreecommitdiff
path: root/modules/gallery/models/task.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-07 12:10:50 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-07 12:10:50 -0700
commitb0cd0a52be1d58e451daa52950deb7d5257e1162 (patch)
treece382e5f47c8993517a3c37dc3e1fa7a2895a3c7 /modules/gallery/models/task.php
parent31969a1d8211187e415eac51d155b4efded365f3 (diff)
Allow the task::log method to take an array of lines and change g2_import.php
helper to use this approach.
Diffstat (limited to 'modules/gallery/models/task.php')
-rw-r--r--modules/gallery/models/task.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/models/task.php b/modules/gallery/models/task.php
index 012b88cf..55bb8e21 100644
--- a/modules/gallery/models/task.php
+++ b/modules/gallery/models/task.php
@@ -53,6 +53,10 @@ class Task_Model extends ORM {
$key = $this->_cache_key();
$log = Cache::instance()->get($key);
+ if (is_array($msg)) {
+ $msg = implode("\n", $msg);
+ }
+
// Save for 30 days.
$log .= !empty($log) ? "\n" : "";
Cache::instance()->set($key, "$log{$msg}",