MDL-27896 context - Fixed editor context to observe filter status

This commit is contained in:
Rajesh Taneja
2011-08-12 11:33:21 +08:00
parent 7969f1ecf5
commit e9de1cf49c
19 changed files with 88 additions and 11 deletions
+8 -1
View File
@@ -143,7 +143,14 @@ profile_load_data($user);
// Prepare the editor and create form
$editoroptions = array('maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>false, 'forcehttps'=>false);
$editoroptions = array(
'maxfiles' => EDITOR_UNLIMITED_FILES,
'maxbytes' => $CFG->maxbytes,
'trusttext' => false,
'forcehttps' => false,
'context' => $personalcontext
);
$user = file_prepare_standard_editor($user, 'description', $editoroptions, $personalcontext, 'user', 'profile', 0);
$userform = new user_edit_form(null, array('editoroptions'=>$editoroptions));
if (empty($user->country)) {