]> git.wh0rd.org - tt-rss.git/commitdiff
mention tt-rss in magpie useragent
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 14 Nov 2006 18:49:02 +0000 (19:49 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 14 Nov 2006 18:49:02 +0000 (19:49 +0100)
functions.php
magpierss/rss_fetch.inc

index d8d12f99ff0ab738d1d71ddbbb403728cf11ebdc..ceaefd215dfd5ed40f3702f39ffec94320edff69 100644 (file)
@@ -13,6 +13,7 @@
        require_once 'version.php';
 
        if (RSS_BACKEND_TYPE == "magpie") {     
+               define('MAGPIE_USER_AGENT_EXT', ' (+Tiny Tiny RSS/' . VERSION . ')');
                require_once "magpierss/rss_fetch.inc";
                require_once 'magpierss/rss_utils.inc';
        } else if (RSS_BACKEND_TYPE == "simplepie") {
index f2fa2fa8685ffed65a814e2facac2725fcaf1b77..695d3b69e4031cbf7147c80f4210be9b42dcb037 100644 (file)
@@ -379,7 +379,11 @@ function init () {
         else {
             $ua = $ua . '; No cache)';
         }
-        
+
+        if ( defined('MAGPIE_USER_AGENT_EXT') ) {
+            $ua = $ua . MAGPIE_USER_AGENT_EXT;
+        }
+
         define('MAGPIE_USER_AGENT', $ua);
     }