Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
d8c1a57b
Commit
d8c1a57b
authored
Dec 04, 2017
by
jun
Browse files
Merge branch 'wip-MDL-60887-master' of
git://github.com/marinaglancy/moodle
parents
bea5a162
12a67a42
Changes
2
Hide whitespace changes
Inline
Side-by-side
admin/registration/confirmregistration.php
View file @
d8c1a57b
...
...
@@ -46,6 +46,14 @@ $error = optional_param('error', '', PARAM_ALPHANUM);
admin_externalpage_setup
(
'registrationmoodleorg'
);
if
(
$url
!==
HUB_MOODLEORGHUBURL
)
{
// Allow other plugins to confirm registration on hubs other than moodle.net . Plugins implementing this
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
$callbacks
=
get_plugins_with_function
(
'hub_registration'
);
foreach
(
$callbacks
as
$plugintype
=>
$plugins
)
{
foreach
(
$plugins
as
$plugin
=>
$callback
)
{
$callback
(
'confirm'
);
}
}
throw
new
moodle_exception
(
'errorotherhubsnotsupported'
,
'hub'
);
}
...
...
admin/registration/renewregistration.php
View file @
d8c1a57b
...
...
@@ -40,6 +40,14 @@ $token = optional_param('token', '', PARAM_TEXT);
admin_externalpage_setup
(
'registrationmoodleorg'
);
if
(
$url
!==
HUB_MOODLEORGHUBURL
)
{
// Allow other plugins to renew registration on hubs other than moodle.net . Plugins implementing this
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
$callbacks
=
get_plugins_with_function
(
'hub_registration'
);
foreach
(
$callbacks
as
$plugintype
=>
$plugins
)
{
foreach
(
$plugins
as
$plugin
=>
$callback
)
{
$callback
(
'renew'
);
}
}
throw
new
moodle_exception
(
'errorotherhubsnotsupported'
,
'hub'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment