mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
Merge branch 'MDL-68060-master-huburlcompare' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
47f825b3d1
@ -45,7 +45,7 @@ $error = optional_param('error', '', PARAM_ALPHANUM);
|
|||||||
|
|
||||||
admin_externalpage_setup('registrationmoodleorg');
|
admin_externalpage_setup('registrationmoodleorg');
|
||||||
|
|
||||||
if ($url !== HUB_MOODLEORGHUBURL) {
|
if (parse_url($url, PHP_URL_HOST) !== parse_url(HUB_MOODLEORGHUBURL, PHP_URL_HOST)) {
|
||||||
// Allow other plugins to confirm registration on custom hubs. Plugins implementing this
|
// Allow other plugins to confirm registration on custom hubs. Plugins implementing this
|
||||||
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
|
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
|
||||||
$callbacks = get_plugins_with_function('hub_registration');
|
$callbacks = get_plugins_with_function('hub_registration');
|
||||||
|
@ -39,7 +39,7 @@ $token = optional_param('token', '', PARAM_TEXT);
|
|||||||
|
|
||||||
admin_externalpage_setup('registrationmoodleorg');
|
admin_externalpage_setup('registrationmoodleorg');
|
||||||
|
|
||||||
if ($url !== HUB_MOODLEORGHUBURL) {
|
if (parse_url($url, PHP_URL_HOST) !== parse_url(HUB_MOODLEORGHUBURL, PHP_URL_HOST)) {
|
||||||
// Allow other plugins to renew registration on custom hubs. Plugins implementing this
|
// Allow other plugins to renew registration on custom hubs. Plugins implementing this
|
||||||
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
|
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
|
||||||
$callbacks = get_plugins_with_function('hub_registration');
|
$callbacks = get_plugins_with_function('hub_registration');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user