mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Using SapphireInfo non-statically in RestfulService (fixes #7238)
This commit is contained in:
parent
136b61eaba
commit
0e8c3acc35
@ -160,7 +160,8 @@ class RestfulService extends ViewableData {
|
||||
public function curlRequest($url, $method, $data = null, $headers = null, $curlOptions = array()) {
|
||||
$ch = curl_init();
|
||||
$timeout = 5;
|
||||
$useragent = 'SilverStripe/' . SapphireInfo::Version();
|
||||
$sapphireInfo = new SapphireInfo();
|
||||
$useragent = 'SilverStripe/' . $sapphireInfo->Version();
|
||||
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user