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:
Dan Poltawski 2013-05-01 07:20:10 +01:00
parent 25927c42ce
commit dd4a197e0f
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class OpenBadgesBackpackHandler {
'RETURNTRANSFER' => true,
'FORBID_REUSE' => true,
'HEADER' => 0,
'CONNECTTIMEOUT_MS' => 3000,
'CONNECTTIMEOUT' => 3,
);
if ($action == 'user') {

View File

@ -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);