Browse Source

Use SortableTableFromArray to show course reporting #2717

Angel Fernando Quiroz Campos 6 years ago
parent
commit
db180619b2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      main/tracking/courseLog.php

+ 5 - 5
main/tracking/courseLog.php

@@ -472,11 +472,11 @@ if (count($a_students) > 0) {
     $all_datas = [];
     $course_code = $_course['id'];
 
-    $table = new SortableTable(
-        'users_tracking',
-        ['TrackingCourseLog', 'get_number_of_users'],
-        ['TrackingCourseLog', 'get_user_data'],
-        1
+    $table = new SortableTableFromArray(
+        $usersTracking,
+        1,
+        20,
+        'users_tracking'
     );
 
     $parameters['cidReq'] = isset($_GET['cidReq']) ? Security::remove_XSS($_GET['cidReq']) : '';