From 2427f3fe6b5b0dc9650baf1bec0155441d3de3b6 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 24 Jul 2009 04:05:39 +0000 Subject: [PATCH] plugins: MDL-19921 external database auth was not showing up. This was a regression from MDL-16438 --- lib/moodlelib.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 2fb565daae..d922071a5c 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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'; -- 2.39.5