MDL-13766, memtype check for local, recent and user plugins

This commit is contained in:
Dongsheng Cai 2010-05-31 03:45:41 +00:00
parent 7e4617f7a6
commit 87628a672e
3 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}