MDL-35349 paypal: Fixing return page so that it now declares page context

This commit is contained in:
Mark Nelson 2012-11-02 15:32:36 +08:00
parent 6109f2112c
commit feb1a1beb8

View File

@ -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 {