diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-28 23:48:15 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-28 23:48:15 +0000 |
commit | ed8689f768f81d2c3ed8bee70c43d4f7c71c108e (patch) | |
tree | 35fccdad514cd834cc0b7cea86966604e617d3f0 /core/models/task.php | |
parent | 1d76689e4b3ea68cada5154d1c0e17b00dec6bd7 (diff) |
Expand on the maintenance code to make it more robust and give the
admin more control. You can now track running tasks, resume stalled
tasks, cancel running tasks, and remove finished tasks.
Added graphics::compose() as a placeholder for future watermark
operations.
Added CSRF protection to maintenance urls.
Diffstat (limited to 'core/models/task.php')
-rw-r--r-- | core/models/task.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/models/task.php b/core/models/task.php index 697ab7bc..b88e34b7 100644 --- a/core/models/task.php +++ b/core/models/task.php @@ -33,4 +33,11 @@ class Task_Model extends ORM { $context[$key] = $value; $this->context = serialize($context); } + + public function save() { + if (!empty($this->changed)) { + $this->updated = time(); + } + return parent::save(); + } }
\ No newline at end of file |