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() --- include/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/functions.php') 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 */ -- cgit v1.2.3