Martin Dougiamas
貼文的作者是 Martin Dougiamas
The Moodle docs were wrong, it's all much simpler than that.
Fixed: admin/environment/php_extension/zip
Fixed: admin/environment/php_extension/zip
It looks like $COURSE is not being set properly for that script (or it is actually somewhere in the top front page course).
The PHP/Moodle script should be doing something like this at the top to authenticate the user properly and set the $COURSE global as well:
require_course_login($course, true, $cm);
(based on data gained from the parameters to the script)
The PHP/Moodle script should be doing something like this at the top to authenticate the user properly and set the $COURSE global as well:
require_course_login($course, true, $cm);
(based on data gained from the parameters to the script)