MDL-16231 fixed regression - completed delete file refactoring

This commit is contained in:
skodak 2009-07-27 12:39:13 +00:00
parent cd5184a278
commit ead1429070

View File

@ -640,7 +640,7 @@ class file_storage {
if (!$newrecord->id) {
if ($newfile) {
$this->mark_delete_candidate($newrecord->contenthash);
$this->deleted_file_cleanup($newrecord->contenthash);
}
throw new stored_file_creation_exception($newrecord->contextid, $newrecord->filearea, $newrecord->itemid,
$newrecord->filepath, $newrecord->filename);
@ -716,7 +716,7 @@ class file_storage {
if (!$newrecord->id) {
if ($newfile) {
$this->mark_delete_candidate($newrecord->contenthash);
$this->deleted_file_cleanup($newrecord->contenthash);
}
throw new stored_file_creation_exception($newrecord->contextid, $newrecord->filearea, $newrecord->itemid,
$newrecord->filepath, $newrecord->filename);