Compatibility with Moodle 2.6