From 34b5a6490c51b954dce19d9ff40fe5097790fda6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Nov 2006 19:49:02 +0100 Subject: [PATCH] mention tt-rss in magpie useragent --- functions.php | 1 + magpierss/rss_fetch.inc | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index d8d12f99..ceaefd21 100644 --- a/functions.php +++ b/functions.php @@ -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") { diff --git a/magpierss/rss_fetch.inc b/magpierss/rss_fetch.inc index f2fa2fa8..695d3b69 100644 --- a/magpierss/rss_fetch.inc +++ b/magpierss/rss_fetch.inc @@ -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); } -- 2.39.5