summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-09-01 08:28:53 +0300
committerAndrew Dolgov <[email protected]>2021-09-01 08:28:53 +0300
commite0050a12f60843a940a5c3b14f80fc8d39dfb0d2 (patch)
treef1c007321a413c0054672d9b5f709933303bcbc5
parent15d037c6a076494220c7c29677e32dec5f69431d (diff)
stop trying to use removed global SELF_USER_AGENT
-rwxr-xr-xinit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 0a6c1a5..6e498e2 100755
--- a/init.php
+++ b/init.php
@@ -35,7 +35,7 @@ class Af_Unburn extends Plugin {
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
- curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
+ curl_setopt($ch, CURLOPT_USERAGENT, Config::get_user_agent());
if (Config::get(Config::HTTP_PROXY)) {
curl_setopt($ch, CURLOPT_PROXY, Config::get(Config::HTTP_PROXY));