block-community MDL-19309 Added call to set page context to fix notification

This commit is contained in:
Sam Hemelryk 2010-05-14 07:13:48 +00:00
parent c07dfe7021
commit 2b2ffe79c2

View File

@ -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');