Merge branch 'MDL-77333_39' of https://github.com/stronk7/moodle into MOODLE_39_STABLE