mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-60766 block_calendar_month: hide nav when not logged in
This commit is contained in:
parent
ccf7578373
commit
eac88b955f
@ -51,7 +51,7 @@ class block_calendar_month extends block_base {
|
||||
$courseid = $this->page->course->id;
|
||||
$categoryid = ($this->page->context->contextlevel === CONTEXT_COURSECAT) ? $this->page->category->id : null;
|
||||
$calendar = \calendar_information::create(time(), $courseid, $categoryid);
|
||||
list($data, $template) = calendar_get_view($calendar, 'mini');
|
||||
list($data, $template) = calendar_get_view($calendar, 'mini', isloggedin());
|
||||
|
||||
$renderer = $this->page->get_renderer('core_calendar');
|
||||
$this->content->text .= $renderer->render_from_template($template, $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user