diff --git a/lib/editor/atto/autosave-ajax.php b/lib/editor/atto/autosave-ajax.php index e5f947fbf86..3e4e7c0e246 100644 --- a/lib/editor/atto/autosave-ajax.php +++ b/lib/editor/atto/autosave-ajax.php @@ -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, diff --git a/lib/editor/atto/db/upgrade.php b/lib/editor/atto/db/upgrade.php index 0ef1693e906..d26776aeae4 100644 --- a/lib/editor/atto/db/upgrade.php +++ b/lib/editor/atto/db/upgrade.php @@ -81,6 +81,5 @@ function xmldb_editor_atto_upgrade($oldversion) { upgrade_plugin_savepoint(true, 2014070301, 'editor', 'atto'); } - return true; } diff --git a/question/type/essay/renderer.php b/question/type/essay/renderer.php index f9b4587f7bb..222e2a44410 100644 --- a/question/type/essay/renderer.php +++ b/question/type/essay/renderer.php @@ -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 ); }