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

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