MDL-35032 mod_book: 1.9 backup restore convertis files to book area

This commit is contained in:
Frederic Massart 2013-12-13 10:20:34 +01:00
parent c36a2401ab
commit 0aa3b16c90

View File

@ -121,12 +121,12 @@ class moodle1_mod_book_handler extends moodle1_mod_handler {
* @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'));
}
/**