getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for the API)
This commit is contained in:
parent
73f168fa45
commit
798f5a646c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue