MDL-53492 registration: use https://moodle.net as hub url

This commit is contained in:
Marina Glancy
2017-07-31 11:36:18 +08:00
parent a6a6b523ec
commit 94a8d2e2e2
5 changed files with 42 additions and 5 deletions
+7
View File
@@ -109,6 +109,13 @@ class community_hub_search_form extends moodleform {
$mform->addElement('static', 'errorhub', '', $error);
}
// Hubdirectory returns old URL for the moodle.net hub, substitute it.
foreach ($hubs as $key => $hub) {
if ($hub['url'] === HUB_OLDMOODLEORGHUBURL) {
$hubs[$key]['url'] = HUB_MOODLEORGHUBURL;
}
}
//display list of registered on hub
$registrationmanager = new registration_manager();
$registeredhubs = $registrationmanager->get_registered_on_hubs();