Merge branch 'MDL-61221-31' of git://github.com/andrewnicols/moodle into MOODLE_31_STABLE
This commit is contained in:
@@ -1148,6 +1148,12 @@ function badges_download($userid) {
|
||||
* @return string Code of backpack accessibility status.
|
||||
*/
|
||||
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;
|
||||
include_once $CFG->libdir . '/filelib.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user