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:
cede87e
)
enrolment MDL-23669 Added missing call to $PAGE->set_course from enrol/index.php
author
Sam Hemelryk
<sam@moodle.com>
Thu, 5 Aug 2010 02:24:39 +0000
(
02:24
+0000)
committer
Sam Hemelryk
<sam@moodle.com>
Thu, 5 Aug 2010 02:24:39 +0000
(
02:24
+0000)
enrol/index.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/index.php
b/enrol/index.php
index
a957876
..
02004b4
100644
(file)
--- a/
enrol/index.php
+++ b/
enrol/index.php
@@
-43,6
+43,8
@@
if ($course->id == SITEID) {
redirect("$CFG->wwwroot/");
}
+$PAGE->set_course($course);
+$PAGE->set_pagelayout('course');
$PAGE->set_url('/enrol/index.php', array('id'=>$course->id));
// do not allow enrols when in login-as session
@@
-77,8
+79,7
@@
if (is_enrolled($context, $USER, '', true)) {
$PAGE->set_title($course->shortname);
$PAGE->set_heading($course->fullname);
-$PAGE->navbar->add($course->fullname);
-
+$PAGE->navbar->add(get_string('enrolmentoptions','enrol'));
echo $OUTPUT->header();