]> git.wh0rd.org - tt-rss.git/commitdiff
api/getFeeds: add hack to properly find feed icons in relative ICONS_DIR (closes...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 28 Dec 2010 08:53:21 +0000 (11:53 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 28 Dec 2010 08:53:21 +0000 (11:53 +0300)
api/index.php

index 53431f479f09615e4b9b39b393533e58849c7421..090493b27eaa804793d088bfa4edeed9cdb0fd1c 100644 (file)
                        $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);