]> git.mjollnir.org Git - moodle.git/commitdiff
plugins: MDL-19921 external database auth was not showing up.
authortjhunt <tjhunt>
Fri, 24 Jul 2009 04:05:39 +0000 (04:05 +0000)
committertjhunt <tjhunt>
Fri, 24 Jul 2009 04:05:39 +0000 (04:05 +0000)
This was a regression from MDL-16438

lib/moodlelib.php

index 2fb565daae129087401cfee6549a40008f37d79d..d922071a5c04408b1f197e57b28b5f4ce5fed66e 100644 (file)
@@ -6786,6 +6786,13 @@ function get_plugin_list($plugintype, $fullpaths=true) {
     global $CFG;
 
     $ignored = array('CVS', '_vti_cnf', 'simpletest', 'db');
+    if ($plugintype == 'auth') {
+        // Historically we have had an auth plugin called 'db', so allow a special case.
+        $key = array_search('db', $ignored);
+        if ($key !== false) {
+            unset($ignored[$key]);
+        }
+    }
 
     if ($plugintype === '') {
         $plugintype = 'mod';