Merge branch 'wip-MDL-37207-master' of git://github.com/marinaglancy/moodle
[moodle.git] / course / renderer.php
index 088df64..9562da5 100644 (file)
@@ -111,7 +111,7 @@ class core_course_renderer extends plugin_renderer_base {
         if (!empty($CFG->coursecontact)) {
             $coursecontactroles = explode(',', $CFG->coursecontact);
             foreach ($coursecontactroles as $roleid) {
         if (!empty($CFG->coursecontact)) {
             $coursecontactroles = explode(',', $CFG->coursecontact);
             foreach ($coursecontactroles as $roleid) {
-                if ($users = get_role_users($roleid, $context, true)) {
+                if ($users = get_role_users($roleid, $context, true, '', null, false)) {
                     foreach ($users as $teacher) {
                         $role = new stdClass();
                         $role->id = $teacher->roleid;
                     foreach ($users as $teacher) {
                         $role = new stdClass();
                         $role->id = $teacher->roleid;
@@ -864,7 +864,7 @@ class core_course_renderer extends plugin_renderer_base {
      * {@link core_course_renderer::course_section_cm_completion()}
      * {@link course_get_cm_edit_actions()}
      * {@link core_course_renderer::course_section_cm_edit_actions()}
      * {@link core_course_renderer::course_section_cm_completion()}
      * {@link course_get_cm_edit_actions()}
      * {@link core_course_renderer::course_section_cm_edit_actions()}
-     * 
+     *
      * @param stdClass $course
      * @param completion_info $completioninfo
      * @param cm_info $mod
      * @param stdClass $course
      * @param completion_info $completioninfo
      * @param cm_info $mod