1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 23:45:55 +00:00

getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for the API)

This commit is contained in:
Andrew Dolgov
2011-05-04 12:10:30 +04:00
parent 73f168fa45
commit 798f5a646c

View File

@@ -2592,11 +2592,7 @@
if (strchr($omode, "l")) $data = array_merge($data, getLabelCounters($link));
if (strchr($omode, "f")) $data = array_merge($data, getFeedCounters($link, $active_feed));
if (strchr($omode, "t")) $data = array_merge($data, getTagCounters($link));
if (strchr($omode, "c")) {
if (get_pref($link, 'ENABLE_FEED_CATS')) {
$data = array_merge($data, getCategoryCounters($link));
}
}
if (strchr($omode, "c")) $data = array_merge($data, getCategoryCounters($link));
return $data;
}