moodle_page: MDL-12212 eliminate the two different interpretations of

pagetype
This commit is contained in:
tjhunt 2009-05-06 08:41:02 +00:00
parent d529807a65
commit e88462a055
9 changed files with 39 additions and 11 deletions

View file

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