mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-80784-401' of https://github.com/noeldemartin/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
97d64fb809
@ -762,7 +762,8 @@ class behat_config_util {
|
||||
|
||||
// Get app version from env.json inside wwwroot.
|
||||
$jsonurl = $CFG->behat_ionic_wwwroot . '/assets/env.json';
|
||||
$json = @file_get_contents($jsonurl);
|
||||
$streamcontext = stream_context_create(['ssl' => ['verify_peer' => false, 'verify_peer_name' => false]]);
|
||||
$json = @file_get_contents($jsonurl, false, $streamcontext);
|
||||
|
||||
if (!$json) {
|
||||
throw new coding_exception('Unable to load app version from ' . $jsonurl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user