212 error handling - sometimes we check for a report too quickly after submitting it and Turnitin responds with a 212 instead of the usual 415
Script to migrate settings and files from old 2.2 assignments to their upgraded 2.3 mod_assign
add patch to fix 1.9 assignments for 2.3 if not previously upgraded correctly.
tidy up migration script.
fix typo
create cli script for migration
fix typo with userid and add check for assign exists when running update_status
use correct settings for late_accept_flag - preventlate != late_accept_flag - they have reversed values. - we should set to 1 when preventlate not a setting (eg new mod_assign) this bug causes 1000 errors to occur
fix old 1000 error codes that were caused by invalid setting of late_accept
more cmid typos
tidy up mainteacher stuff - fix for 212 errors that occur when the mainteacher set has not been added to the course.
typo in delete records call
fix issues with config where assign exists but assignid doesn't - old bug that caused this state.
fix typo
Merge remote-tracking branch 'origin/MOODLE_23_STABLE' into 23_disableanon

Conflicts:
	lib.php