mattgibson/moodle-plagiarism_turnitin — comment on commit 03eeac495d2083a07d235f7a322c9c9259af71bd
File:  line 0
By mattgibson:

Well, if plagiarism isn't enabled, then the plagiarism_get_links() function won't be called, so that ought not to matter. Of course when it is subsequently enabled, an event won't be triggered, so the files will just sit there. Even if turnitin_files had a record added on submission, there still wouldn't be a record in this case. Maybe a routine is needed to hoover up any files that have not been submitted yet, but when to call it?