backward compatible with assignment 2.2 module in Moodle 2.3