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
@@ -113,7 +113,14 @@ if (!empty($CFG->usetags)) {
if ($user->id !== -1) {
$usercontext = get_context_instance(CONTEXT_USER, $user->id);
$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' => $usercontext
);
$user = file_prepare_standard_editor($user, 'description', $editoroptions, $usercontext, 'user', 'profile', 0);
} else {
$usercontext = null;