MDL-38109 use always get_plugin_list() to get list of plugins

get_list_of_plugins() is NOT intended for real plugins, only plugin like directories.
This commit is contained in:
Petr Škoda
2013-06-11 10:22:45 +02:00
parent b3be471f52
commit a9cda870ba
4 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -513,8 +513,8 @@ function filter_get_all_installed() {
global $CFG;
$filternames = array();
foreach (get_list_of_plugins('filter') as $filter) {
if (is_readable("$CFG->dirroot/filter/$filter/filter.php")) {
foreach (get_plugin_list('filter') as $filter => $fulldir) {
if (is_readable("$fulldir/filter.php")) {
$filternames[$filter] = filter_get_name($filter);
}
}