mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-23125 fixed variable name collision - credit goes to Iaki Arenaza, thanks!
This commit is contained in:
parent
4817aee5db
commit
47811589ce
@ -706,14 +706,14 @@ abstract class enrol_plugin {
|
||||
* @return string value
|
||||
*/
|
||||
public function set_config($name, $value) {
|
||||
$name = $this->get_name();
|
||||
$pluginname = $this->get_name();
|
||||
$this->load_config();
|
||||
if ($value === NULL) {
|
||||
unset($this->config->$name);
|
||||
} else {
|
||||
$this->config->$name = $value;
|
||||
}
|
||||
set_config($name, $value, "enrol_$name");
|
||||
set_config($name, $value, "enrol_$pluginname");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user