+ add loghistory of deleted files.

This commit is contained in:
fujia
2010-09-14 03:16:08 +00:00
parent ef5ca266d0
commit 7b4e86395f
6 changed files with 108 additions and 95 deletions
+3
View File
@@ -114,7 +114,10 @@ class file extends control
}
else
{
$file = $this->file->getById($fileID);
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
$this->loadModel('action')->create($file->objectType, $file->objectID, 'deletedFile', '', $extra=$file->title);
@unlink($file->realPath);
die(js::reload('parent'));
}
}