Skip to content

Commit c8b2d05

Browse files
author
Laur0r
authored
Merge branch 'master' into extrafields
2 parents aa5711d + 2277fad commit c8b2d05

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

.github/workflows/moodle-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
steps:
114114
- name: Start MariaDB
115115
if: matrix.database == 'mariadb'
116-
run: docker run -p 3306:3306 -e MYSQL_USER=root -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mariadb:10
116+
run: docker run -p 3306:3306 -e MYSQL_USER=root -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mariadb:10.5
117117

118118
- name: Start PostgreSQL
119119
if: matrix.database == 'pgsql'

backup/moodle2/backup_groupmembers_activity_task.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public static function encode_content_links($content) {
5656

5757
$base = preg_quote($CFG->wwwroot, "/");
5858

59-
// Link to the list of groupmembers
59+
// Link to the list of groupmembers.
6060
$search = "/(".$base."\/mod\/groupmembers\/index.php\?id\=)([0-9]+)/";
6161
$content = preg_replace($search, '$@GROUPMEMBERINDEX*$2@$', $content);
6262

63-
// Link to view by moduleid
63+
// Link to view by moduleid.
6464
$search = "/(".$base."\/mod\/groupmembers\/view.php\?id\=)([0-9]+)/";
6565
$content = preg_replace($search, '$@GROUPMEMBERVIEWBYID*$2@$', $content);
6666

classes/groups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ public static function get_groups_and_members($courseid, $groupingid, $userid, $
7676

7777
return $groupsandmembers;
7878
}
79-
}
79+
}

classes/privacy/provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
4242
*
4343
* @return string
4444
*/
45-
public static function _get_reason() {
45+
public static function get_reason(): string {
4646
return 'privacy:metadata';
4747
}
4848
}

db/events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
course_module_viewed - user viewed group members
3333
course_module_instance_list_viewed - user viewed course module instances
3434
35-
*/
35+
*/

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@
6161
}
6262
echo html_writer::alist($linklist);
6363

64-
echo $OUTPUT->footer();
64+
echo $OUTPUT->footer();

tests/groups_datastructure_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ private static function prepare_basic_data(testing_data_generator $dg) {
183183

184184
return [$course->id, $user1->id, $group1->id, $grouping->id];
185185
}
186-
}
186+
}

version.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
defined('MOODLE_INTERNAL') || die();
2727

2828
$plugin->maturity = MATURITY_STABLE;
29-
$plugin->release = 'v3.7-r1';
30-
$plugin->version = 2021061500; // The current module version (Date: YYYYMMDDXX)
31-
$plugin->requires = 2016120500; // Requires this Moodle version
29+
$plugin->release = 'v3.11-r2';
30+
$plugin->version = 2021082700; // The current module version (Date: YYYYMMDDXX).
31+
$plugin->requires = 2016120500; // Requires this Moodle version.
3232
$plugin->component = 'mod_groupmembers'; // Full name of the plugin (used for diagnostics).

view.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@
3131

3232
// Load course module.
3333
if (! $cm = get_coursemodule_from_id('groupmembers', $id)) {
34-
print_error('invalidcoursemodule');
34+
throw new moodle_exception('invalidcoursemodule');
3535
}
3636

3737
// Load corresponding course.
3838
if (! $course = $DB->get_record('course', array('id' => $cm->course))) {
39-
print_error('coursemisconf');
39+
throw new moodle_exception('coursemisconf');
4040
}
4141

4242
require_course_login($course, false, $cm);
4343
$context = context_module::instance($cm->id);
4444

4545
// Load groupmembers object.
4646
if (! $groupmembers = groupmembers_get_groupmembers($cm->instance)) {
47-
print_error('invalidcoursemodule');
47+
throw new moodle_exception('invalidcoursemodule');
4848
}
4949

5050
$PAGE->set_title($groupmembers->name);

0 commit comments

Comments
 (0)