logicexpertise / moodle-mod_onlyoffice

Moodle ONLYOFFICE Document Server online editor integration
7 stars 12 forks source link

Incorrect use of AJAX_SCRIPT #17

Closed mudrd8mz closed 2 years ago

mudrd8mz commented 2 years ago

https://github.com/logicexpertise/moodle-mod_onlyoffice/blob/bd2eb0ae2235c5ac867eb6e665b90ea6a3081c94/dsconfig.php#L26

This is not how the constant is supposed to be used.

The point is to define it unconditionally before loading the main config.php. So that the environment can be set up appropriately. This affects things like the format of thrown exceptions etc.

logicexpertise commented 2 years ago

Resolved