MDL-50222 admin: do not use deprecated print_textarea()

This commit is contained in:
Marina Glancy 2015-05-14 09:31:30 +08:00
parent 17abbfba1f
commit 2bf60e22f7

View File

@ -472,7 +472,9 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
}
protected function get_description_field($id) {
return print_textarea(true, 10, 50, 50, 10, 'description', $this->role->description, 0, true);
return '<textarea class="form-textarea" id="'. s($id) .'" name="description" rows="10" cols="50">' .
htmlspecialchars($this->role->description) .
'</textarea>';
}
protected function get_archetype_field($id) {