From: Andrew Dolgov Date: Tue, 28 Dec 2010 08:53:21 +0000 (+0300) Subject: api/getFeeds: add hack to properly find feed icons in relative ICONS_DIR (closes... X-Git-Tag: 1.5.1~17 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=35aa08bbc0f591fbcf8aa8614756c9688bbd4b11 api/getFeeds: add hack to properly find feed icons in relative ICONS_DIR (closes #283) --- diff --git a/api/index.php b/api/index.php index 53431f47..090493b2 100644 --- a/api/index.php +++ b/api/index.php @@ -135,6 +135,8 @@ $limit = (int) db_escape_string($_REQUEST["limit"]); $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); print api_wrap_reply(API_STATUS_OK, $seq, $feeds);