mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 01:20:27 +01:00
This was always bad, but since we only used it to verify the existence of the param, and let library code take $_REQUEST for the real validation, it was ok. Now, since we're redirecting to self during necessary cookie checks added by MDL-80835, we lose the real value originally stored in $_REQUEST. This patch just fixes the param type, setting it to raw, which is what it should have used originally. The raw value won't be cast from a string to an int as part of the require_param call, so the value won't be lost any more.
ENROLMENT MODULES ----------------- (Yes, that's the correct English spelling ;-) ) All enrolment modules must extend base class enrol_plugin which is defined in lib/enrollib.php. You can find documentation of each method in the base class.