Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeccf4b
)
MDL-53671 book: Return whole filepath in book_export_contents
author
Dani Palou
<dani@moodle.com>
Thu, 31 Mar 2016 13:38:55 +0000
(15:38 +0200)
committer
Dani Palou
<dani@moodle.com>
Thu, 31 Mar 2016 13:38:55 +0000
(15:38 +0200)
mod/book/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/book/lib.php
b/mod/book/lib.php
index
41dddfe
..
ddeaf0a
100644
(file)
--- a/
mod/book/lib.php
+++ b/
mod/book/lib.php
@@
-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,