From ed8689f768f81d2c3ed8bee70c43d4f7c71c108e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 28 Dec 2008 23:48:15 +0000 Subject: 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. --- core/models/task.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/models') 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 -- cgit v1.2.3