Commit d33b19a5 authored by David Mudrak's avatar David Mudrak
Browse files

MDL-23245 Added support for new style of auth plugin configuration

This hack allows auth plugins to migrate to the new auth_xxx naming
style (as happened with auth_mnet in my previous commit).
parent 09c1b1a2
......@@ -43,7 +43,9 @@ if ($frm = data_submitted() and confirm_sesskey()) {
}
}
} else {
$frm = get_config("auth/$auth");
$frmlegacystyle = get_config('auth/'.$auth);
$frmnewstyle = get_config('auth_'.$auth);
$frm = (object)array_merge((array)$frmlegacystyle, (array)$frmnewstyle);
}
$user_fields = $authplugin->userfields;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment