diff options
author | Andrew Dolgov <[email protected]> | 2011-05-04 12:10:30 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-05-04 12:10:30 +0400 |
commit | 798f5a646c001db64ad15297607b116c119c617d (patch) | |
tree | 5400299f36337418b65d3f06b5b51ca47bbd16cf | |
parent | 73f168fa45180545fb3d87630c5c8e6f2eac0500 (diff) |
getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for the API)
-rw-r--r-- | functions.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/functions.php b/functions.php index d3f64b58f..32c642a19 100644 --- a/functions.php +++ b/functions.php @@ -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; } |