Remove the corresponding information from the timeline on deletion.

This commit is contained in:
Loic d'Anterroches
2008-11-23 11:20:08 +01:00
parent d9ffac099f
commit 99dd3aa1d6
2 changed files with 34 additions and 0 deletions

View File

@@ -154,6 +154,14 @@ class IDF_Upload extends Pluf_Model
return Pluf::f('url_media').'/upload/'.$project->shortname.'/files/'.$this->file;
}
/**
* We drop the information from the timeline.
*/
function preDelete()
{
IDF_Timeline::remove($this);
}
/**
* Returns the timeline fragment for the file.
*