MDL-41042 coursecat: better handle changes in coursecontact
This commit is contained in:
@@ -4922,6 +4922,8 @@ class admin_setting_special_coursecontact extends admin_setting_pickroles {
|
||||
parent::__construct('coursecontact', get_string('coursecontact', 'admin'),
|
||||
get_string('coursecontact_desc', 'admin'),
|
||||
array('editingteacher'));
|
||||
$this->set_updatedcallback(create_function('',
|
||||
"cache::make('core', 'coursecontacts')->purge();"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user