From 2c931df77ccba5e76bc1865584e870219596ff69 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 23 Aug 2021 10:56:31 +0300 Subject: remove SELF_USER_AGENT custom constant, replaced with configurable Config::HTTP_USER_AGENT / Config::get_user_agent() --- classes/urlhelper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/urlhelper.php') diff --git a/classes/urlhelper.php b/classes/urlhelper.php index 710b32b00..0e4834b72 100644 --- a/classes/urlhelper.php +++ b/classes/urlhelper.php @@ -281,8 +281,7 @@ class UrlHelper { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); - curl_setopt($ch, CURLOPT_USERAGENT, $useragent ? $useragent : - SELF_USER_AGENT); + curl_setopt($ch, CURLOPT_USERAGENT, $useragent ? $useragent : Config::get_user_agent()); curl_setopt($ch, CURLOPT_ENCODING, ""); if ($http_referrer) -- cgit v1.2.3