]> git.wh0rd.org Git - tt-rss.git/commitdiff
set php built-in user-agent
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Nov 2010 09:52:17 +0000 (12:52 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Nov 2010 09:52:17 +0000 (12:52 +0300)
functions.php

index 411f26b6ebd62326c4970effd70aeddefe3c3c81..6d72c687399cd355e5b443062ae774283150afbe 100644 (file)
        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';