mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-13766, memtype check for local, recent and user plugins
This commit is contained in:
parent
7e4617f7a6
commit
87628a672e
3 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue