barryspace fixes
https://github.com/barrysspace/moodle-mod_kalvidassign/commits/MDL26_UON_FIXES
get_courseid_from_context deprecated