Merge branch 'wip-MDL-49995-34' of git://github.com/marinaglancy/moodle into MOODLE_34_STABLE
This commit is contained in:
@@ -304,7 +304,9 @@ class stored_file {
|
||||
$filerecord->filesize = $newfile->get_filesize();
|
||||
$filerecord->referencefileid = $newfile->get_referencefileid();
|
||||
$filerecord->userid = $newfile->get_userid();
|
||||
$oldcontenthash = $this->get_contenthash();
|
||||
$this->update($filerecord);
|
||||
$this->filesystem->remove_file($oldcontenthash);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user