plugins: MDL-19921 external database auth was not showing up.

This was a regression from MDL-16438
This commit is contained in:
tjhunt 2009-07-24 04:05:39 +00:00
parent d8aada61dc
commit 2427f3fe6b

View 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';