MDL-34290 update all references after the source is changed
authorMarina Glancy <marina@moodle.com>
Tue, 31 Jul 2012 01:02:13 +0000 (09:02 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 29 Aug 2012 03:56:00 +0000 (11:56 +0800)
commit14b7e50001cf3cf03a5d80db1c2350692c8ac73c
treef2d650babd308c5b3bc8fe49e50addd635affc3e
parenta3c94686aab3146bdce2dc1fc48ddae4920a65b3
MDL-34290 update all references after the source is changed

- When several records in {files} have the same record in {files_reference} and the synchronisation is performed, we need to update
all records in {files} so all files know if source is changed and that sync was performed;
- also when local moodle file content is changed we immediately update all files referencing to it (therefore sync of references
to the local files is unnecessary);
lib/filelib.php
lib/filestorage/file_storage.php
lib/filestorage/stored_file.php