Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
a6021a98
Commit
a6021a98
authored
Mar 31, 2016
by
dani
Browse files
MDL-53671 book: Return whole filepath in book_export_contents
parent
aeccf4bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/book/lib.php
View file @
a6021a98
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment