mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-06 15:10:44 -04:00
Allow the task::log method to take an array of lines and change g2_import.php
helper to use this approach.
This commit is contained in:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user