mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Fixed hard-codes string
This commit is contained in:
parent
38a5e3d34a
commit
5fe3980628
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
$stradministration = get_string('administration');
|
$stradministration = get_string('administration');
|
||||||
$strmanageroles = get_string('manageroles');
|
$strmanageroles = get_string('manageroles');
|
||||||
|
$strdelete = get_string('delete');
|
||||||
|
|
||||||
if ($roleid && $action!='delete') {
|
if ($roleid && $action!='delete') {
|
||||||
$role = get_record('role', 'id', $roleid);
|
$role = get_record('role', 'id', $roleid);
|
||||||
|
@ -185,7 +186,7 @@
|
||||||
|
|
||||||
foreach ($roles as $role) {
|
foreach ($roles as $role) {
|
||||||
|
|
||||||
$table->data[] = array('<a href="manage.php?roleid='.$role->id.'&sesskey='.sesskey().'">'.$role->name.'</a>', $role->description, '<a href="manage.php?action=delete&roleid='.$role->id.'&sesskey='.sesskey().'">delete</a>');
|
$table->data[] = array('<a href="manage.php?roleid='.$role->id.'&sesskey='.sesskey().'">'.$role->name.'</a>', $role->description, '<a href="manage.php?action=delete&roleid='.$role->id.'&sesskey='.sesskey().'">'.$strdelete.'</a>');
|
||||||
|
|
||||||
}
|
}
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue