mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-39207 badges: don't use curl version depedent constant
It seems that CURLOPT_CONNECTTIMEOUT_MS is depdendent on the version of curl compiled against. We don't need milliseconds here anyway, so switch to the seconds value.
This commit is contained in:
parent
25927c42ce
commit
dd4a197e0f
@ -64,7 +64,7 @@ class OpenBadgesBackpackHandler {
|
||||
'RETURNTRANSFER' => true,
|
||||
'FORBID_REUSE' => true,
|
||||
'HEADER' => 0,
|
||||
'CONNECTTIMEOUT_MS' => 3000,
|
||||
'CONNECTTIMEOUT' => 3,
|
||||
);
|
||||
|
||||
if ($action == 'user') {
|
||||
|
@ -1279,7 +1279,7 @@ function badges_check_backpack_accessibility() {
|
||||
'FRESH_CONNECT' => true,
|
||||
'RETURNTRANSFER' => true,
|
||||
'HEADER' => 0,
|
||||
'CONNECTTIMEOUT_MS' => 2000,
|
||||
'CONNECTTIMEOUT' => 2,
|
||||
);
|
||||
$location = 'http://backpack.openbadges.org/baker';
|
||||
$out = $curl->get($location, array('assertion' => $fakeassertion->out(false)), $options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user