MDL-53671 book: Return whole filepath in book_export_contents

This commit is contained in:
Dani Palou
2016-04-05 13:35:56 +02:00
parent 22fa1056d7
commit 5d1cc5707e
+1 -1
View File
@@ -563,7 +563,7 @@ function book_export_contents($cm, $baseurl) {
$file = array();
$file['type'] = 'file';
$file['filename'] = $fileinfo->get_filename();
$file['filepath'] = "/{$chapter->id}/";
$file['filepath'] = "/{$chapter->id}" . $fileinfo->get_filepath();
$file['filesize'] = $fileinfo->get_filesize();
$file['fileurl'] = moodle_url::make_webservice_pluginfile_url(
$context->id, 'mod_book', 'chapter', $chapter->id,