diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-07 12:10:50 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-07 12:10:50 -0700 |
commit | b0cd0a52be1d58e451daa52950deb7d5257e1162 (patch) | |
tree | ce382e5f47c8993517a3c37dc3e1fa7a2895a3c7 /modules/gallery/models/task.php | |
parent | 31969a1d8211187e415eac51d155b4efded365f3 (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.php | 4 |
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}", |