Dyma quickfix additonal ar gyfer defnyddwyr gyda PHP fersiwn <5.2.0. Os oes gennych fersiwn mwy diweddar o PHP na 5.2.0 instaled ar eich gweinydd, nid oes rhaid i chi wneud unrhyw newidiadau.
Yn ffeil:
Code:
forum root -> includes -> vbenterprisetranlator_class_translator.php
Dod o hyd (dylai ddechrau ger llinell 472):
PHP Code:
$token = json_decode (curl_exec($obj_connection));
self::$token_ttl = time() + ($token->{'expires_in'});
self::$token = 'Authorization: Bearer '.$token->{'access_token'};
curl_close($obj_connection);
return 'Authorization: Bearer '.$token->{'access_token'};
a'i disodli â:
PHP Code:
$fulltoken = curl_exec($obj_connection);
preg_match('/{"access_token":"(.*?)"/', $fulltoken, $token);
preg_match('/"expires_in":"(.*?)"/', $fulltoken, $expires);
self::$token_ttl = time() + $expires[1];
self::$token = 'Authorization: Bearer '.$token[1];
curl_close($obj_connection);
return 'Authorization: Bearer '.$token[1];