MDL-58684 files: Ensure stored_file never serializes the file_storage
commite927581a50dbbf39b22ab9a49e0e316fe0cc83f1
authorJake Dallimore <jake@moodle.com>
Mon, 8 May 2017 03:12:39 +0000 (8 11:12 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 8 May 2017 03:12:39 +0000 (8 11:12 +0800)
tree0e4e4406e079e07f6cbbb4074e3f9ce61669f50b
parentac6b845de78de482930992f7c9c2b5a2b2716d7f
MDL-58684 files: Ensure stored_file never serializes the file_storage

Magic methods __sleep and __wakeup used to properly store only the
file_record property and to reinit using get_file_storage().
lib/filestorage/stored_file.php