mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
block-community MDL-19309 Added call to set page context to fix notification
This commit is contained in:
parent
c07dfe7021
commit
2b2ffe79c2
@ -32,6 +32,7 @@ require_once($CFG->dirroot.'/blocks/community/forms.php');
|
||||
|
||||
require_login();
|
||||
|
||||
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||
$PAGE->set_url('/blocks/community/communitycourse.php');
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
$PAGE->set_pagelayout('course');
|
||||
|
Loading…
x
Reference in New Issue
Block a user