Merge branch 'MDL-66906-master-fix' of git://github.com/andrewnicols/moodle