Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'wip-MDL-36215-m24' of git://github.com/samhemelryk/mood…

…le into MOODLE_24_STABLE
  • Loading branch information...
commit 29f07d932ad17637646c2e59529e6f1705dcccff 2 parents 00d4e02 + 49f853b
Eloy Lafuente (stronk7) stronk7 authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 lib/navigationlib.php
5 lib/navigationlib.php
@@ -2439,16 +2439,19 @@ public function add_course_essentials($coursenode, stdClass $course) {
2439 2439 $participants = $coursenode->add(get_string('participants'), new moodle_url('/user/index.php?id='.$course->id), self::TYPE_CONTAINER, get_string('participants'), 'participants');
2440 2440 $currentgroup = groups_get_course_group($course, true);
2441 2441 if ($course->id == $SITE->id) {
  2442 + $filtervar = 'courseid';
2442 2443 $filterselect = '';
2443 2444 } else if ($course->id && !$currentgroup) {
  2445 + $filtervar = 'courseid';
2444 2446 $filterselect = $course->id;
2445 2447 } else {
  2448 + $filtervar = 'groupid';
2446 2449 $filterselect = $currentgroup;
2447 2450 }
2448 2451 $filterselect = clean_param($filterselect, PARAM_INT);
2449 2452 if (($CFG->bloglevel == BLOG_GLOBAL_LEVEL or ($CFG->bloglevel == BLOG_SITE_LEVEL and (isloggedin() and !isguestuser())))
2450 2453 and has_capability('moodle/blog:view', context_system::instance())) {
2451   - $blogsurls = new moodle_url('/blog/index.php', array('courseid' => $filterselect));
  2454 + $blogsurls = new moodle_url('/blog/index.php', array($filtervar => $filterselect));
2452 2455 $participants->add(get_string('blogscourse','blog'), $blogsurls->out());
2453 2456 }
2454 2457 if (!empty($CFG->enablenotes) && (has_capability('moodle/notes:manage', $this->page->context) || has_capability('moodle/notes:view', $this->page->context))) {

0 comments on commit 29f07d9

Please sign in to comment.
Something went wrong with that request. Please try again.