mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-61221-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
3f5cae3679
1 changed files with 6 additions and 0 deletions
|
@ -1186,6 +1186,12 @@ function badges_download($userid) {
|
||||||
* @return string Code of backpack accessibility status.
|
* @return string Code of backpack accessibility status.
|
||||||
*/
|
*/
|
||||||
function badges_check_backpack_accessibility() {
|
function badges_check_backpack_accessibility() {
|
||||||
|
if (defined('BEHAT_SITE_RUNNING') && BEHAT_SITE_RUNNING) {
|
||||||
|
// For behat sites, do not poll the remote badge site.
|
||||||
|
// Behat sites should not be available, but we should pretend as though they are.
|
||||||
|
return 'available';
|
||||||
|
}
|
||||||
|
|
||||||
global $CFG;
|
global $CFG;
|
||||||
include_once $CFG->libdir . '/filelib.php';
|
include_once $CFG->libdir . '/filelib.php';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue