Merge branch 'MDL-49553_master' of git://github.com/markn86/moodle

This commit is contained in:
Dan Poltawski 2016-01-12 17:01:13 +00:00
commit e6f519b73e

View File

@ -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.');
}
/**