Merge branch 'MDL-30472-master' of git://github.com/ankitagarwal/moodle
authorAparup Banerjee <aparup@moodle.com>
Tue, 13 Dec 2011 06:34:42 +0000 (14:34 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 13 Dec 2011 06:34:42 +0000 (14:34 +0800)
1  2 
user/index.php

diff --combined user/index.php
  
      $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');