MINOR Making version number in RestfulService dynamic (see #4383)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@81824 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-07-14 20:55:42 +00:00
parent c1f0dda466
commit faed7b0c14

View File

@ -95,7 +95,7 @@ class RestfulService extends ViewableData {
} else {
$ch = curl_init();
$timeout = 5;
$useragent = "SilverStripe/2.2";
$useragent = "SilverStripe/" . SapphireInfo::Version();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);