X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhttpclient.php;h=c7abe121166b7aaa72578c382048876f3ea29d5f;hb=96f30dd924be1d6cb6e1b462db12b949c8dac078;hp=a92c7d8c5be96d70cc8cbf14cd6bcd9e9b3032fc;hpb=f46d675a20bd1c70eeb492d7068fabae83e6a6f5;p=quix0rs-gnu-social.git diff --git a/lib/httpclient.php b/lib/httpclient.php index a92c7d8c5b..c7abe12116 100644 --- a/lib/httpclient.php +++ b/lib/httpclient.php @@ -158,7 +158,7 @@ class HTTPClient extends HTTP_Request2 } parent::__construct($url, $method, $config); - $this->setHeader('User-Agent', $this->userAgent()); + $this->setHeader('User-Agent', self::userAgent()); } /** @@ -247,9 +247,10 @@ class HTTPClient extends HTTP_Request2 * * @return string */ - function userAgent() + static public function userAgent() { - return "GNU Social/".STATUSNET_VERSION." (".STATUSNET_CODENAME.")"; + return GNUSOCIAL_ENGINE . '/' . GNUSOCIAL_VERSION + . ' (' . GNUSOCIAL_CODENAME . ')'; } /**