mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-16231 fixed regression - completed delete file refactoring
This commit is contained in:
parent
cd5184a278
commit
ead1429070
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user