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:
304d124
)
MDL-24042 mod/data is using weaker require_course_login instead of standard require_l...
author
Petr Skoda
<skodak@moodle.org>
Sun, 3 Oct 2010 13:15:49 +0000
(13:15 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Sun, 3 Oct 2010 13:15:49 +0000
(13:15 +0000)
mod/data/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/data/lib.php
b/mod/data/lib.php
index
197c3fe
..
90e835d
100755
(executable)
--- a/
mod/data/lib.php
+++ b/
mod/data/lib.php
@@
-2049,7
+2049,7
@@
abstract class data_preset_importer {
$fs = $fileobj = null;
if (!is_directory_a_preset($this->directory)) {
//maybe the user requested a preset stored in the Moodle file storage
-
+
$fs = get_file_storage();
$files = $fs->get_area_files(DATA_PRESET_CONTEXT, DATA_PRESET_COMPONENT, DATA_PRESET_FILEAREA);
@@
-2731,7
+2731,7
@@
function data_pluginfile($course, $cm, $context, $filearea, $args, $forcedownloa
return false;
}
- require_
login($course, fals
e, $cm);
+ require_
course_login($course, tru
e, $cm);
if ($filearea === 'content') {
$contentid = (int)array_shift($args);