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
1 changed files with 1 additions and 5 deletions

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;
}