mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-35032 mod_book: 1.9 backup restore convertis files to book area
This commit is contained in:
parent
c36a2401ab
commit
0aa3b16c90
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user