MDL-25290 conversion: Converted config to use MUC

This commit is contained in:
Sam Hemelryk 2012-08-14 11:40:28 +12:00
parent 9da506c2a3
commit 007bfe8b4d
6 changed files with 76 additions and 57 deletions

View file

@ -150,6 +150,8 @@ class block_section_links extends block_base {
global $DB;
// TODO: Move these config settings to proper ones using component name
$DB->delete_records('config_plugins', array('plugin' => 'blocks/section_links'));
// Have to manually purge the cache as well
cache_helper::invalidate_by_definition('core', 'config', array(), 'blocks/section_links');
}
function has_config() {