Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d402e05
)
MDL-35349 paypal: Fixing return page so that it now declares page context
author
Mark Nelson
<markn@moodle.com>
Fri, 2 Nov 2012 07:32:36 +0000
(15:32 +0800)
committer
Mark Nelson
<markn@moodle.com>
Fri, 2 Nov 2012 07:33:59 +0000
(15:33 +0800)
enrol/paypal/return.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/paypal/return.php
b/enrol/paypal/return.php
index
a8a6557
..
d65b83d
100644
(file)
--- a/
enrol/paypal/return.php
+++ b/
enrol/paypal/return.php
@@
-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 {