Skip to content

Commit

Permalink
Merge branch 'MDL-34586-25' of https://github.com/mackensen/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_25_STABLE
  • Loading branch information
Damyon Wiese committed Oct 14, 2013
2 parents 73dc6a5 + d5336bd commit f5c356d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mod/assignment/backup/moodle1/lib.php
Expand Up @@ -78,6 +78,8 @@ public function get_paths() {
* 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);
Expand All @@ -95,6 +97,12 @@ public function process_assignment($data) {
$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,
Expand Down Expand Up @@ -243,4 +251,4 @@ public function append_subplugin_data($data) {
* This class handles subplugins that do not exist or that are not supported
*/
class moodle1_assignment_unsupported_subplugin_handler extends moodle1_assignment_subplugin_handler {
}
}

0 comments on commit f5c356d

Please sign in to comment.