From 64ef2fe631301b03dc78da1867088bd6e30b4e95 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 30 Dec 2025 09:19:22 +0000 Subject: [PATCH] MDL-86659 enrol_flatfile: remove spurious get_config parameters. --- enrol/flatfile/lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/enrol/flatfile/lib.php b/enrol/flatfile/lib.php index 2c2e6f79d53..9dfb10dc242 100644 --- a/enrol/flatfile/lib.php +++ b/enrol/flatfile/lib.php @@ -622,10 +622,10 @@ class enrol_flatfile_plugin extends enrol_plugin { } /** - * Returns a mapping of ims roles to role ids. + * Returns a mapping of role name aliases to role IDs * * @param progress_trace $trace - * @return array imsrolename=>roleid + * @return int[] role name alias => role ID */ protected function get_role_map(progress_trace $trace) { global $DB; @@ -634,7 +634,7 @@ class enrol_flatfile_plugin extends enrol_plugin { $rolemap = array(); $roles = $DB->get_records('role', null, '', 'id, name, shortname'); foreach ($roles as $id=>$role) { - $alias = $this->get_config('map_'.$id, $role->shortname, ''); + $alias = $this->get_config('map_' . $id, $role->shortname); $alias = trim(core_text::strtolower($alias)); if ($alias === '') { // Either not configured yet or somebody wants to skip these intentionally.