Merge branch 'MDL-86667-500' of https://github.com/stevandoMoodle/moodle into MOODLE_500_STABLE
This commit is contained in:
@@ -542,6 +542,11 @@ class registration {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Unset saved site info.
|
||||
foreach (self::FORM_FIELDS as $field) {
|
||||
set_config('site_' . $field, null, 'hub');
|
||||
}
|
||||
|
||||
$DB->delete_records('registration_hubs', array('id' => $hub->id));
|
||||
self::$registration = null;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user