MDL-87229 course: Show nice "Other users" table in courses.

This commit is contained in:
Luca Bösch
2026-01-09 07:12:35 +01:00
parent 774796cf77
commit 47ce3408a1
+2 -2
View File
@@ -368,7 +368,7 @@ class course_enrolment_table extends html_table implements renderable {
$this->sort = optional_param(self::SORTVAR, self::DEFAULTSORT, PARAM_ALPHANUM);
$this->sortdirection = optional_param(self::SORTDIRECTIONVAR, self::DEFAULTSORTDIRECTION, PARAM_ALPHA);
$this->attributes = array('class' => 'userenrolment table-striped');
$this->attributes = ['class' => 'userenrolment table table-striped table-hover generaltable'];
if (!in_array($this->sort, self::$sortablefields)) {
$this->sort = self::DEFAULTSORT;
}
@@ -654,7 +654,7 @@ class course_enrolment_other_users_table extends course_enrolment_table {
*/
public function __construct(course_enrolment_manager $manager) {
parent::__construct($manager);
$this->attributes = array('class'=>'userenrolment otheruserenrolment');
$this->attributes['class'] .= ' otheruserenrolment';
}
/**