mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-35032 mod_book: 1.9 backup restore convertis files to book area
This commit is contained in:
parent
3e6e38b2e3
commit
d8a4219d47
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue