mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-17000 "telling get_list_of_plugins() to ignore simpletest directories" added simpletest to the list of dirs to ignore.
This commit is contained in:
parent
ef09fadc44
commit
ba1ff79a76
@ -6135,7 +6135,7 @@ function get_list_of_plugins($plugin='mod', $exclude='', $basedir='') {
|
||||
$dirhandle = opendir($basedir);
|
||||
while (false !== ($dir = readdir($dirhandle))) {
|
||||
$firstchar = substr($dir, 0, 1);
|
||||
if ($firstchar == '.' or $dir == 'CVS' or $dir == '_vti_cnf' or $dir == $exclude) {
|
||||
if ($firstchar == '.' or $dir == 'CVS' or $dir == '_vti_cnf' or $dir == 'simpletest' or $dir == $exclude) {
|
||||
continue;
|
||||
}
|
||||
if (filetype($basedir .'/'. $dir) != 'dir') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user