From: Andrew Dolgov Date: Wed, 17 Nov 2010 09:52:17 +0000 (+0300) Subject: set php built-in user-agent X-Git-Tag: 1.5.0~176 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=500943a45b3993b28ceee7331ac0bf65ae22b636;p=tt-rss.git set php built-in user-agent --- diff --git a/functions.php b/functions.php index 411f26b6..6d72c687 100644 --- a/functions.php +++ b/functions.php @@ -117,6 +117,8 @@ define('SELF_USER_AGENT', 'Tiny Tiny RSS/' . VERSION . ' (http://tt-rss.org/)'); define('MAGPIE_USER_AGENT', SELF_USER_AGENT); + ini_set('user_agent', SELF_USER_AGENT); + require_once "lib/simplepie/simplepie.inc"; require_once "lib/magpierss/rss_fetch.inc"; require_once 'lib/magpierss/rss_utils.inc';