]> git.mjollnir.org Git - moodle.git/commitdiff
Exclude "db" dir when detecting plugins (to be used in blocks
authorstronk7 <stronk7>
Sat, 10 Apr 2004 23:44:50 +0000 (23:44 +0000)
committerstronk7 <stronk7>
Sat, 10 Apr 2004 23:44:50 +0000 (23:44 +0000)
registration). No problems (I think) at all with mod registration.

lib/moodlelib.php

index 0a1d68891d94fcf9ff6628cef8d72b8af6769e58..22881e3ccef79714e7e274d73529b6d2d65710a9 100644 (file)
@@ -2003,7 +2003,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" or $dir == "_vti_cnf") {
+        if ($firstchar == "." or $dir == "CVS" or $dir == "_vti_cnf" or $dir == "db") {
             continue;
         }
         if (filetype("$CFG->dirroot/$plugin/$dir") != "dir") {