Skip to content

Commit

Permalink
MDL-16231 fixed regression - completed delete file refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 27, 2009
1 parent cd5184a commit ead1429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/file/file_storage.php
Expand Up @@ -640,7 +640,7 @@ public function create_file_from_pathname($file_record, $pathname) {

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);
Expand Down Expand Up @@ -716,7 +716,7 @@ public function create_file_from_string($file_record, $content) {

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);
Expand Down

0 comments on commit ead1429

Please sign in to comment.