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
3ec7ea98
Commit
3ec7ea98
authored
Nov 05, 2013
by
Frederic Massart
Browse files
MDL-42706 mod_book: Undefined CFG in pluginfile function
parent
4816e19a
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/book/lib.php
View file @
3ec7ea98
...
...
@@ -405,7 +405,7 @@ function book_get_file_info($browser, $areas, $course, $cm, $context, $filearea,
* @return bool false if file not found, does not return if found - just send the file
*/
function
book_pluginfile
(
$course
,
$cm
,
$context
,
$filearea
,
$args
,
$forcedownload
,
array
$options
=
array
())
{
global
$DB
;
global
$CFG
,
$DB
;
if
(
$context
->
contextlevel
!=
CONTEXT_MODULE
)
{
return
false
;
...
...
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