MDL-61326 repository_equella: Pass proper labels for roles with no name
authorPeter <peter@moodle.com>
Mon, 3 Dec 2018 05:36:40 +0000 (13:36 +0800)
committerPeter <peter@moodle.com>
Mon, 11 Feb 2019 23:09:13 +0000 (07:09 +0800)
repository/equella/lib.php

index cfffc8c..be5635d 100644 (file)
@@ -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",