mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-13766, memtype check for local, recent and user plugins
This commit is contained in:
parent
7e4617f7a6
commit
87628a672e
@ -108,7 +108,7 @@ class repository_local extends repository {
|
||||
$children = $fileinfo->get_children();
|
||||
foreach ($children as $child) {
|
||||
if ($child->is_directory()) {
|
||||
$params = $child->get_params();
|
||||
$params = $child->get_params();
|
||||
$encodedpath = base64_encode(serialize($params));
|
||||
// hide user_private area from local plugin, user should
|
||||
// use private file plugin to access private files
|
||||
@ -142,6 +142,7 @@ class repository_local extends repository {
|
||||
throw new repository_exception('emptyfilelist', 'repository_local');
|
||||
}
|
||||
$ret['list'] = $list;
|
||||
$ret['list'] = array_filter($list, array($this, 'filter'));
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
@ -121,6 +121,7 @@ class repository_recent extends repository {
|
||||
throw new repository_exception('emptyfilelist', 'repository_recent');
|
||||
}
|
||||
$ret['list'] = $list;
|
||||
$ret['list'] = array_filter($list, array($this, 'filter'));
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
@ -133,6 +133,7 @@ class repository_user extends repository {
|
||||
throw new repository_exception('emptyfilelist', 'repository_user');
|
||||
}
|
||||
$ret['list'] = $list;
|
||||
$ret['list'] = array_filter($list, array($this, 'filter'));
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user