mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 18:51:29 +00:00
mention tt-rss in magpie useragent
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
require_once 'version.php';
|
require_once 'version.php';
|
||||||
|
|
||||||
if (RSS_BACKEND_TYPE == "magpie") {
|
if (RSS_BACKEND_TYPE == "magpie") {
|
||||||
|
define('MAGPIE_USER_AGENT_EXT', ' (+Tiny Tiny RSS/' . VERSION . ')');
|
||||||
require_once "magpierss/rss_fetch.inc";
|
require_once "magpierss/rss_fetch.inc";
|
||||||
require_once 'magpierss/rss_utils.inc';
|
require_once 'magpierss/rss_utils.inc';
|
||||||
} else if (RSS_BACKEND_TYPE == "simplepie") {
|
} else if (RSS_BACKEND_TYPE == "simplepie") {
|
||||||
|
|||||||
@@ -380,6 +380,10 @@ function init () {
|
|||||||
$ua = $ua . '; No cache)';
|
$ua = $ua . '; No cache)';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( defined('MAGPIE_USER_AGENT_EXT') ) {
|
||||||
|
$ua = $ua . MAGPIE_USER_AGENT_EXT;
|
||||||
|
}
|
||||||
|
|
||||||
define('MAGPIE_USER_AGENT', $ua);
|
define('MAGPIE_USER_AGENT', $ua);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user