diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-06 22:20:04 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-06 22:20:04 -0700 |
commit | 493fb27825327e14168c3c0b133c338a53457e0e (patch) | |
tree | 2df161468e14334211cbfd2984c674af46dd320f /modules/gallery/models/task.php | |
parent | 6588f3bbd16c0ca91809a11a2e9b341d6a7c85a6 (diff) |
Cleanup remove task processing. Change Task_Model::delete to call parent::delete
instead of parent::save. :-) Also change admin_maintenance_controller to delete
via looping over all of the completed tasks and delete individually, so we can
delete the associated cache entries at the same time.
Diffstat (limited to 'modules/gallery/models/task.php')
-rw-r--r-- | modules/gallery/models/task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/models/task.php b/modules/gallery/models/task.php index 2e77a7a6..012b88cf 100644 --- a/modules/gallery/models/task.php +++ b/modules/gallery/models/task.php @@ -42,7 +42,7 @@ class Task_Model extends ORM { public function delete() { Cache::instance()->delete($this->_cache_key()); - return parent::save(); + return parent::delete(); } public function owner() { |