Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bold teachers

  • Loading branch information...
commit 4fad7af8e1fdec3f23bc69b8eb7ba9f5cbd29a80 1 parent 60ab709
moodler authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 blocks/online_users/block_online_users.php
6 blocks/online_users/block_online_users.php
@@ -65,7 +65,7 @@ function get_content() {
65 65 $groupmembers
66 66 WHERE u.id = s.userid and
67 67 s.course = {$this->course->id} and
68   - s.timeaccess > $timefrom $select ORDER BY s.timeaccess ASC");
  68 + s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC");
69 69
70 70 $teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess
71 71 FROM {$CFG->prefix}user u,
@@ -73,7 +73,7 @@ function get_content() {
73 73 $groupmembers
74 74 WHERE u.id = s.userid and
75 75 s.course = {$this->course->id} and
76   - s.timeaccess > $timefrom $select ORDER BY s.timeaccess ASC");
  76 + s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC");
77 77
78 78 if ($teachers || $students) {
79 79 if ($students) {
@@ -84,7 +84,7 @@ function get_content() {
84 84 }
85 85 if ($teachers) {
86 86 foreach ($teachers as $teacher) {
87   - $teacher->fullname = fullname($teacher);
  87 + $teacher->fullname = '<b>'.fullname($teacher).'</b>';
88 88 $users[$teacher->id] = $teacher;
89 89 }
90 90 }

0 comments on commit 4fad7af

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