Fix coursedisplay for Moodle 2.5 compliance