catalyst / moodle-mod_scormremote

A Moodle activity for serving SCORM packages remotely to another LMS across domains
https://moodle.org/plugins/mod_scormremote
Other
9 stars 3 forks source link

Moodle table prefix has to be mdl_ #44

Closed LDTSEducacion closed 1 year ago

LDTSEducacion commented 1 year ago

If I'm not wrong, the plugging fails -cannot read the database- when the tables prefix is different from mdl_ -the moodle default prefix. It occurs when downloading the wrapper

LDTSEducacion commented 1 year ago

These are the lines that I had to correct

/mod/scormremote/classes # grep mdl_ *

client.php: FROM mdl_scormremote_clients AS client client.php: FROM mdl_scormremote_client_domains AS scd client.php: FROM mdl_scormremote_clients AS sc client.php: mdl_scormremote_clients AS sc client.php: JOIN mdl_scormremote_subscriptions AS ss ON ss.clientid = sc.id client.php: JOIN mdl_scormremote_course_tiers AS sct ON sct.tierid = ss.tierid