turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
GNU General Public License v3.0
49 stars 70 forks source link

Turnitin should use Moodle Class Autoaloading #715

Open mhughes2k opened 4 months ago

mhughes2k commented 4 months ago

This code from https://github.com/turnitin/moodle-plagiarism_turnitin/blob/8cf0d4f8dbad46a36079c5f4b77ea294a1dcf8cc/lib.php#L70 onwards is anachronistic.

The classes that are being manually loaded have already been physically placed in the relevant location (/classes) for Moodle class autoloading to be performed, but named in a way that is not compliant with this.

There should be no need to come up with an alternate way for PHP classes to be loaded.