jmcgettrick / MoodleDirectV2

Turnitin Moodle Direct version 2.
24 stars 24 forks source link

Set page context in ajax.php correctly #477

Closed aolley closed 9 years ago

aolley commented 9 years ago

The turnitintooltwo module is outputting warnings in its ajax script as the $PAGE->context is not being set, or is set incorrectly. This variable needs to be set appropriately based on the requested action.

jmcgettrick commented 9 years ago

Hi, I can't merge this in manually due to the repository moving but I've made the changes manually at https://github.com/jmcgettrick/moodle-mod_turnitintooltwo/commit/ecc7401a96a7a900a4e06e824f2f795b5ba2f3de in the develop branch.

Cheers