mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 20:55:56 +00:00
api/getFeeds: add hack to properly find feed icons in relative ICONS_DIR (closes #283)
This commit is contained in:
@@ -135,6 +135,8 @@
|
|||||||
$limit = (int) db_escape_string($_REQUEST["limit"]);
|
$limit = (int) db_escape_string($_REQUEST["limit"]);
|
||||||
$offset = (int) db_escape_string($_REQUEST["offset"]);
|
$offset = (int) db_escape_string($_REQUEST["offset"]);
|
||||||
|
|
||||||
|
chdir(".."); // so feed_has_icon() would work properly for relative ICONS_DIR
|
||||||
|
|
||||||
$feeds = api_get_feeds($link, $cat_id, $unread_only, $limit, $offset);
|
$feeds = api_get_feeds($link, $cat_id, $unread_only, $limit, $offset);
|
||||||
|
|
||||||
print api_wrap_reply(API_STATUS_OK, $seq, $feeds);
|
print api_wrap_reply(API_STATUS_OK, $seq, $feeds);
|
||||||
|
|||||||
Reference in New Issue
Block a user