Admin setting for stats: ranked courses get userthreshold
This commit is contained in:
@@ -583,6 +583,9 @@ function stats_get_parameters($time,$report,$courseid,$mode) {
|
||||
$param->fields = 'max(students+teachers) as line1,max(activestudents+activeteachers) AS line2,'
|
||||
.'max(activestudents+activeteachers)'.$real.'/max(students+teachers)'.$real.' AS line3';
|
||||
$param->extras = 'HAVING max(students+teachers) != 0';
|
||||
if (!empty($CFG->statsuserthreshold) && is_numeric($CFG->statsuserthreshold)) {
|
||||
$param->extras .= ' AND max(students+teachers) > '.$CFG->statsuserthreshold;
|
||||
}
|
||||
$param->orderby = 'line3 DESC';
|
||||
$param->line1 = get_string('users');
|
||||
$param->line2 = get_string('activeusers');
|
||||
|
||||
Reference in New Issue
Block a user