นี่คือ quickfix สกุลเงินเพื่อการสำหรับผู้ใช้ที่มี PHP รุ่น < 5.2.0 หากคุณมีโปรแกรมรุ่นใหม่ของ PHP 5.2.0 instaled บนเซิร์ฟเวอร์ของคุณที่ไม่ใช่ คุณไม่จำเป็นต้องทำการเปลี่ยนแปลง
ในแฟ้ม:
Code:
forum root -> includes -> vbenterprisetranlator_class_translator.php
ค้นหา (มันควรเริ่มใกล้บรรทัดที่ 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'};
และแทนด้วย:
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];