Merge branch 'MDL-78673-402' of https://github.com/andrewnicols/moodle into MOODLE_40...