MDL-18014 Atto autosave: Fix coding style issues

This commit is contained in:
Damyon Wiese 2014-07-21 13:38:13 +08:00
parent e3502577b8
commit 8593521f4c
3 changed files with 8 additions and 3 deletions

View File

@ -104,7 +104,13 @@ if ($action === 'save') {
// This function copies all the files in one draft area, to another area (in this case it's
// another draft area). It also rewrites the text to @@PLUGINFILE@@ links.
$newdrafttext = file_save_draft_area_files($record->draftid, $usercontext->id, 'user', 'draft', $newdraftid, array(), $record->drafttext);
$newdrafttext = file_save_draft_area_files($record->draftid,
$usercontext->id,
'user',
'draft',
$newdraftid,
array(),
$record->drafttext);
// Final rewrite to the new draft area (convert the @@PLUGINFILES@@ again).
$newdrafttext = file_rewrite_pluginfile_urls($newdrafttext,

View File

@ -81,6 +81,5 @@ function xmldb_editor_atto_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2014070301, 'editor', 'atto');
}
return true;
}

View File

@ -365,7 +365,7 @@ class qtype_essay_format_editorfilepicker_renderer extends qtype_essay_format_ed
'maxfiles' => -1,
'context' => $context,
'noclean' => 0,
'trusttext'=>0,
'trusttext'=> 0,
'autosave' => false
);
}