mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
moodle_page: MDL-12212 eliminate the two different interpretations of
pagetype
This commit is contained in:
parent
d529807a65
commit
e88462a055
9 changed files with 39 additions and 11 deletions
|
@ -1929,6 +1929,10 @@ function require_login($courseorid=0, $autologinguest=true, $cm=null, $setwantsu
|
|||
}
|
||||
}
|
||||
$PAGE->set_course($course);
|
||||
} else {
|
||||
// If $PAGE->course, and hence $PAGE->context, have not already been set
|
||||
// up properly, set them up now.
|
||||
$PAGE->set_course($PAGE->course);
|
||||
}
|
||||
|
||||
/// If the user is not even logged in yet then make sure they are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue