Skip to content

Commit

Permalink
MDL-35032 mod_book: 1.9 backup restore convertis files to book area
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz committed Dec 13, 2013
1 parent cf0e970 commit 20bfdb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/book/backup/moodle1/lib.php
Expand Up @@ -121,12 +121,12 @@ public function process_book($data) {
* @param array $data
*/
public function process_book_chapters($data) {
$this->write_xml('chapter', $data, array('/chapter/id'));

// convert chapter files
// Convert chapter files.
$this->fileman->filearea = 'chapter';
$this->fileman->itemid = $data['id'];
$data['content'] = moodle1_converter::migrate_referenced_files($data['content'], $this->fileman);

$this->write_xml('chapter', $data, array('/chapter/id'));
}

/**
Expand Down

0 comments on commit 20bfdb9

Please sign in to comment.