mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'wip-MDL-36987-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
4d0fe0ec94
@ -41,13 +41,16 @@ class auth_plugin_manual extends auth_plugin_base {
|
||||
* The name of the component. Used by the configuration.
|
||||
*/
|
||||
const COMPONENT_NAME = 'auth_manual';
|
||||
const LEGACY_COMPONENT_NAME = 'auth/manual';
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
function auth_plugin_manual() {
|
||||
$this->authtype = 'manual';
|
||||
$this->config = get_config(self::COMPONENT_NAME);
|
||||
$config = get_config(self::COMPONENT_NAME);
|
||||
$legacyconfig = get_config(self::LEGACY_COMPONENT_NAME);
|
||||
$this->config = (object)array_merge((array)$legacyconfig, (array)$config);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user