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 f47b2e4a24
commit 853d6d008f
+2 -1
View File
@@ -35,10 +35,11 @@ if (!$course = $DB->get_record("course", array("id"=>$id))) {
}
$context = get_context_instance(CONTEXT_COURSE, $course->id, MUST_EXIST);
$PAGE->set_context($context);
require_login();
if ($SESSION->wantsurl) {
if (!empty($SESSION->wantsurl)) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
} else {