mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-55425 user: allow to update another user editor pref
This commit is contained in:
parent
7752762674
commit
e91b3e8282
2 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,7 @@ $PAGE->set_url('/user/editor.php', array('id' => $userid, 'course' => $courseid)
|
|||
list($user, $course) = useredit_setup_preference_page($userid, $courseid);
|
||||
|
||||
// Create form.
|
||||
$editorform = new user_edit_editor_form(null, array('userid' => $user->id));
|
||||
$editorform = new user_edit_editor_form();
|
||||
|
||||
$user->preference_htmleditor = get_user_preferences( 'htmleditor', '', $user->id);
|
||||
$editorform->set_data($user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue