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:
9d8de34
)
fixed missing global
author
Petr Skoda
<skodak@moodle.org>
Sat, 18 Sep 2010 12:40:24 +0000
(12:40 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Sat, 18 Sep 2010 12:40:24 +0000
(12:40 +0000)
mod/data/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/data/lib.php
b/mod/data/lib.php
index
3b5e383
..
a504249
100755
(executable)
--- a/
mod/data/lib.php
+++ b/
mod/data/lib.php
@@
-1847,6
+1847,8
@@
function data_get_available_presets($context) {
* @return array An array of presets
*/
function data_get_available_site_presets($context, array $presets=array()) {
+ global $USER;
+
$fs = get_file_storage();
$files = $fs->get_area_files(DATA_PRESET_CONTEXT, DATA_PRESET_COMPONENT, DATA_PRESET_FILEAREA);
$canviewall = has_capability('mod/data:viewalluserpresets', $context);