Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
560ae35
)
Merge branch 'wip-MDL-49995-master' of git://github.com/marinaglancy/moodle
author
Damyon Wiese
<damyon@moodle.com>
Mon, 18 Dec 2017 03:35:29 +0000
(11:35 +0800)
committer
Damyon Wiese
<damyon@moodle.com>
Mon, 18 Dec 2017 03:35:29 +0000
(11:35 +0800)
lib/filestorage/stored_file.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/filestorage/stored_file.php
b/lib/filestorage/stored_file.php
index
36f186f
..
c1a4254
100644
(file)
--- a/
lib/filestorage/stored_file.php
+++ b/
lib/filestorage/stored_file.php
@@
-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);
}
/**