Merge branch 'MDL-71392-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE