From 798f5a646c001db64ad15297607b116c119c617d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 4 May 2011 12:10:30 +0400 Subject: getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for the API) --- functions.php | 6 +----- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3