summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-12-28 11:53:21 +0300
committerAndrew Dolgov <[email protected]>2010-12-28 11:53:21 +0300
commit35aa08bbc0f591fbcf8aa8614756c9688bbd4b11 (patch)
tree6f32b22160bdba3fb8648cd4ed3e438e220e7698 /api
parent1644304f114626466dd45940ea21f6892efacebb (diff)
api/getFeeds: add hack to properly find feed icons in relative ICONS_DIR (closes #283)
Diffstat (limited to 'api')
-rw-r--r--api/index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/index.php b/api/index.php
index 53431f479..090493b27 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);