mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 14:46:35 +02:00
Merge branch 'MDL-34586-master' of https://github.com/mackensen/moodle
This commit is contained in:
commit
48947db114
@ -78,6 +78,8 @@ class moodle1_mod_assignment_handler extends moodle1_mod_handler {
|
||||
* data available
|
||||
*/
|
||||
public function process_assignment($data) {
|
||||
global $CFG;
|
||||
|
||||
// get the course module id and context id
|
||||
$instanceid = $data['id'];
|
||||
$cminfo = $this->get_cminfo($instanceid);
|
||||
@ -95,6 +97,12 @@ class moodle1_mod_assignment_handler extends moodle1_mod_handler {
|
||||
$this->fileman->itemid = 0;
|
||||
$data['intro'] = moodle1_converter::migrate_referenced_files($data['intro'], $this->fileman);
|
||||
|
||||
// convert the introformat if necessary
|
||||
if ($CFG->texteditors !== 'textarea') {
|
||||
$data['intro'] = text_to_html($data['intro'], false, false, true);
|
||||
$data['introformat'] = FORMAT_HTML;
|
||||
}
|
||||
|
||||
// start writing assignment.xml
|
||||
$this->open_xml_writer("activities/assignment_{$this->moduleid}/assignment.xml");
|
||||
$this->xmlwriter->begin_tag('activity', array('id' => $instanceid, 'moduleid' => $this->moduleid,
|
||||
@ -243,4 +251,4 @@ abstract class moodle1_assignment_subplugin_handler extends moodle1_submod_handl
|
||||
* This class handles subplugins that do not exist or that are not supported
|
||||
*/
|
||||
class moodle1_assignment_unsupported_subplugin_handler extends moodle1_assignment_subplugin_handler {
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user