From 8c7d6407b9353b7859956d32407104644981d882 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 3 Dec 2018 13:36:40 +0800 Subject: [PATCH] MDL-61326 repository_equella: Pass proper labels for roles with no name --- repository/equella/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/equella/lib.php b/repository/equella/lib.php index cfffc8c024f..be5635da42b 100644 --- a/repository/equella/lib.php +++ b/repository/equella/lib.php @@ -291,7 +291,7 @@ class repository_equella extends repository { foreach (self::get_all_editing_roles() as $role) { $mform->addElement('header', 'groupheader_'.$role->shortname, get_string('group', 'repository_equella', - format_string($role->name))); + role_get_name($role))); $mform->addElement('text', "equella_{$role->shortname}_shareid", get_string('sharedid', 'repository_equella')); $mform->setType("equella_{$role->shortname}_shareid", PARAM_RAW); $mform->addElement('text', "equella_{$role->shortname}_sharedsecret",