mention tt-rss in magpie useragent

This commit is contained in:
Andrew Dolgov 2006-11-14 19:49:02 +01:00
parent 4724a093a8
commit 34b5a6490c
2 changed files with 6 additions and 1 deletions

View 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") {

View 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);
}