mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MNET MDL-23001 bad use of get_config causing mnet SSO fail.
This commit is contained in:
parent
8d86a2ad3e
commit
2c0b7ba20e
@ -866,7 +866,7 @@ function mnet_fields_to_import(mnet_peer $peer) {
|
||||
*/
|
||||
function _mnet_field_helper(mnet_peer $peer, $key) {
|
||||
$tmp = mnet_profile_field_options();
|
||||
$defaults = explode(',', get_config('mnetprofile' . $key . 'fields'));
|
||||
$defaults = explode(',', get_config('moodle', 'mnetprofile' . $key . 'fields'));
|
||||
if (1 === get_config('mnet', 'host' . $peer->id . $key . 'default')) {
|
||||
return array_merge($tmp['forced'], $defaults);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user