Compatibility with Moodle 2.4 and backwards