Merge branch 'MDL-30738' of git://github.com/kiklop74/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 20 Dec 2011 00:59:46 +0000 (01:59 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 20 Dec 2011 00:59:46 +0000 (01:59 +0100)
1  2 
user/index.php

diff --combined user/index.php
@@@ -31,7 -31,7 +31,7 @@@
              'search' => $search,
              'roleid' => $roleid,
              'contextid' => $contextid,
-             'courseid' => $courseid));
+             'id' => $courseid));
  
      if ($contextid) {
          $context = get_context_instance_by_id($contextid, MUST_EXIST);
  
      $isseparategroups = ($course->groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context));
  
 -    if ($course->id===SITEID) {
 -        $PAGE->navbar->ignore_active();
 -    }
 -
 -    $PAGE->navbar->add(get_string('participants'));
      $PAGE->set_title("$course->shortname: ".get_string('participants'));
      $PAGE->set_heading($course->fullname);
      $PAGE->set_pagetype('course-view-' . $course->format);
  
      if (!isset($hiddenfields['lastaccess'])) {
          $table->sortable(true, 'lastaccess', SORT_DESC);
 +    } else {
 +        $table->sortable(true, 'firstname', SORT_ASC);
      }
  
      $table->no_sorting('roles');