From 1d0dc3102aff16c0535b8dc223ea96100b3a470d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Mon, 30 Sep 2019 13:03:48 +0200 Subject: [PATCH] MDL-66118 hub: Define the new sites directory URL The Moodle sites now register with stats.moodle.org so use that as a new official hub's URL. Beside that, allow for the alternative value be provided in config.php for development and testing purposes. --- lib/moodlelib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 334ff65d4b8..97ef382cfc1 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -491,11 +491,10 @@ define('HOMEPAGE_USER', 2); */ define('HUB_HUBDIRECTORYURL', "https://hubdirectory.moodle.org"); - /** - * Moodle.net url (should be moodle.net) + * URL of the Moodle sites registration portal. */ -define('HUB_MOODLEORGHUBURL', "https://moodle.net"); +defined('HUB_MOODLEORGHUBURL') || define('HUB_MOODLEORGHUBURL', 'https://stats.moodle.org'); define('HUB_OLDMOODLEORGHUBURL', "http://hub.moodle.org"); /**