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 3e6e38b2e3
commit d8a4219d47

View file

@ -121,12 +121,12 @@ class moodle1_mod_book_handler extends moodle1_mod_handler {
* @param array $data * @param array $data
*/ */
public function process_book_chapters($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->filearea = 'chapter';
$this->fileman->itemid = $data['id']; $this->fileman->itemid = $data['id'];
$data['content'] = moodle1_converter::migrate_referenced_files($data['content'], $this->fileman); $data['content'] = moodle1_converter::migrate_referenced_files($data['content'], $this->fileman);
$this->write_xml('chapter', $data, array('/chapter/id'));
} }
/** /**