mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
NOBUG: Fixing context issue with forum post if you're not logged in
This commit is contained in:
parent
673835d4fb
commit
184bcf11ab
@ -82,6 +82,8 @@ if (!isloggedin() or isguestuser()) {
|
||||
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
}
|
||||
|
||||
$PAGE->set_cm($cm, $course, $forum);
|
||||
$PAGE->set_context($modcontext);
|
||||
$PAGE->set_title($course->shortname);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user