mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-21 23:33:54 -04:00
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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user