Merge branch 'wip-MDL-49995-34' of git://github.com/marinaglancy/moodle into MOODLE_34_STABLE

This commit is contained in:
Damyon Wiese
2017-12-18 12:01:28 +08:00
+2
View File
@@ -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);
}
/**