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
690168cb
Commit
690168cb
authored
Oct 20, 2017
by
Marina Glancy
Browse files
MDL-60108 registration: do not offer registration in behat tests
parent
eed0bc36
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/classes/hub/registration.php
View file @
690168cb
...
...
@@ -537,6 +537,10 @@ class registration {
* @param string|moodle_url $url
*/
public
static
function
registration_reminder
(
$url
)
{
if
(
defined
(
'BEHAT_SITE_RUNNING'
)
&&
BEHAT_SITE_RUNNING
)
{
// No redirection during behat runs.
return
;
}
if
(
!
has_capability
(
'moodle/site:config'
,
context_system
::
instance
()))
{
return
;
}
...
...
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