summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-08-23 10:56:31 +0300
committerAndrew Dolgov <[email protected]>2021-08-23 10:56:31 +0300
commit2c931df77ccba5e76bc1865584e870219596ff69 (patch)
treef902ce89ac849f6fd3c7d250489ccadf228ccbfd /include
parent5c6025447416616f47ab7b22d179d2b27a2c3eba (diff)
remove SELF_USER_AGENT custom constant, replaced with configurable Config::HTTP_USER_AGENT / Config::get_user_agent()
Diffstat (limited to 'include')
-rw-r--r--include/functions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 922d3765c..36519fd44 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -157,8 +157,7 @@
require_once 'controls.php';
require_once 'controls_compat.php';
- define('SELF_USER_AGENT', 'Tiny Tiny RSS/' . Config::get_version() . ' (http://tt-rss.org/)');
- ini_set('user_agent', SELF_USER_AGENT);
+ ini_set('user_agent', Config::get_user_agent());
/* compat shims */