X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fhttpclient.php;h=c7abe121166b7aaa72578c382048876f3ea29d5f;hb=c44146d6f83c06d1d10dac6a1e35754c7c783974;hp=0c249a518f3ec89f34d99752cd641307c96ed1c0;hpb=2ef9beb4b1b5666f6b8b388d8eea38881cff79c7;p=quix0rs-gnu-social.git diff --git a/lib/httpclient.php b/lib/httpclient.php index 0c249a518f..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/".GNUSOCIAL_VERSION." (".GNUSOCIAL_CODENAME.")"; + return GNUSOCIAL_ENGINE . '/' . GNUSOCIAL_VERSION + . ' (' . GNUSOCIAL_CODENAME . ')'; } /**