diff --git a/admin/settings/plugins.php b/admin/settings/plugins.php index 156c972..1078102 100644 --- a/admin/settings/plugins.php +++ b/admin/settings/plugins.php @@ -80,14 +80,16 @@ if ($hassiteconfig) { foreach ($auths as $auth => $authdir) { $strauthname = get_string('pluginname', "auth_{$auth}"); - $authbyname[$strauthname] = $auth; + $authbyname[$strauthname] = array($auth,$authdir); } ksort($authbyname); - foreach ($authbyname as $strauthname=>$authname) { + foreach ($authbyname as $strauthname=>$authdata) { + list($authname,$authdir) = $authdata; if (file_exists($authdir.'/settings.php')) { // do not show disabled auths in tree, keep only settings link on manage page $settings = new admin_settingpage('authsetting'.$authname, $strauthname, 'moodle/site:config', !in_array($authname, + if ($ADMIN->fulltree) { include($authdir.'/settings.php'); }