Merge branch 'wip-MDL-49995-33' of git://github.com/marinaglancy/moodle into MOODLE_33_STABLE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user