mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-35349 paypal: Fixing return page so that it now declares page context
This commit is contained in:
parent
6109f2112c
commit
feb1a1beb8
@ -35,10 +35,11 @@ if (!$course = $DB->get_record("course", array("id"=>$id))) {
|
||||
}
|
||||
|
||||
$context = context_course::instance($course->id, MUST_EXIST);
|
||||
$PAGE->set_context($context);
|
||||
|
||||
require_login();
|
||||
|
||||
if ($SESSION->wantsurl) {
|
||||
if (!empty($SESSION->wantsurl)) {
|
||||
$destination = $SESSION->wantsurl;
|
||||
unset($SESSION->wantsurl);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user