mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-18014 Atto autosave: Fix coding style issues
This commit is contained in:
parent
e3502577b8
commit
8593521f4c
@ -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,
|
||||
|
@ -81,6 +81,5 @@ function xmldb_editor_atto_upgrade($oldversion) {
|
||||
upgrade_plugin_savepoint(true, 2014070301, 'editor', 'atto');
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user