MDL-39177 Update file in filearea only if original is present
authorMarina Glancy <marina@moodle.com>
Mon, 13 May 2013 05:12:20 +0000 (15:12 +1000)
committerMarina Glancy <marina@moodle.com>
Fri, 17 May 2013 03:43:45 +0000 (13:43 +1000)
commit0e7fd52e20790915f96154da00a041756c3abeb1
treead228d185a80661bf04d1191f8b0bfbc81be6989
parentf7c588d2261c16cad3da26c2bde9b4246166c34d
MDL-39177 Update file in filearea only if original is present

Now when file was deleted in filemanager and new file with the same file was uploaded the references will be converted to copies exactly like UI warns in filemanager.
Also do not delete original information from draftfiles.
lib/filelib.php