Exclude vti_cnf directories if they are found
This commit is contained in:
+1
-1
@@ -1330,7 +1330,7 @@ function get_list_of_plugins($plugin="mod") {
|
||||
$basedir = opendir("$CFG->dirroot/$plugin");
|
||||
while ($dir = readdir($basedir)) {
|
||||
$firstchar = substr($dir, 0, 1);
|
||||
if ($firstchar == "." or $dir == "CVS") {
|
||||
if ($firstchar == "." or $dir == "CVS" or $dir == "vti_cnf") {
|
||||
continue;
|
||||
}
|
||||
if (filetype("$CFG->dirroot/$plugin/$dir") != "dir") {
|
||||
|
||||
Reference in New Issue
Block a user