MDL-38545 Reports: PHP Strict Standards error in graph.php
MDL-39166 auth_ldap Add triggers for user created/updated events.
MDL-39409 auth/cas pass web proxy settings along to phpCAS
MDL-38369 repository: Remove output before redirect
MDL-39454 Accesslib: is_siteadmin is a bit slow
MDL-39487 mod/assign: fixed ID number of grade item changing
MDL-39472 MUC: Optimise cache::get_from_persist_cache
MDL-26120_24 mod_forum: use correct object
MDL-36482 activities block: Allow mod display without intro's
MDL-39198 theme_formal_white: resized and relocated the "Add..." drop down menu of the "Add a block" pseudo block
MDL-39280 form: Multiple select support disabledIf with multiple values
MDL-35859 core_grade:fixed an optional parameter call to use the array version
MDL-39363 scorm: Accept 0 as a valid score
MDL-39640 repository: Prevent notice when editing an instance
Automatically generated installer lang files
MDL-33719 When overwriting a file the filemanager is not refreshed
MDL-39177 File reference is not updated when overwriting the file
MDL-39177 Original info is not preserved when overwriting a file in filemanager

original file location is used by filemanager to indicate that file is a source of reference and file the list of referencing files
MDL-39177 Discard file origin when moving/renaming a file in filemanager

Created one function that handles file update to be used from both JS and nonJS filepicker
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.