mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-49553_master' of git://github.com/markn86/moodle
This commit is contained in:
commit
e6f519b73e
@ -344,16 +344,9 @@ class block_base {
|
||||
* You don't need to override this if you 're satisfied with the above
|
||||
*
|
||||
* @deprecated since Moodle 2.9 MDL-49385 - Please use Admin Settings functionality to save block configuration.
|
||||
* @todo MDL-49553 This will be deleted in Moodle 3.1
|
||||
* @param array $data
|
||||
* @return boolean
|
||||
*/
|
||||
function config_save($data) {
|
||||
debugging('config_save($data) is deprecated, use Admin Settings functionality to save block configuration.', DEBUG_DEVELOPER);
|
||||
foreach ($data as $name => $value) {
|
||||
set_config($name, $value);
|
||||
}
|
||||
return true;
|
||||
throw new coding_exception('config_save() can not be used any more, use Admin Settings functionality to save block configuration.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user