CLAMP-530 compatibility with Moodle 2.5