Skip to content

Commit

Permalink
MDL-23245 Added support for new style of auth plugin configuration
Browse files Browse the repository at this point in the history
This hack allows auth plugins to migrate to the new auth_xxx naming
style (as happened with auth_mnet in my previous commit).
  • Loading branch information
mudrd8mz committed Jul 13, 2010
1 parent 09c1b1a commit d33b19a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/auth_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
}
}
} 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;
Expand Down

0 comments on commit d33b19a

Please sign in to comment.