From: Andrew Dolgov Date: Wed, 4 May 2011 08:10:30 +0000 (+0400) Subject: getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for... X-Git-Tag: 1.5.4~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=798f5a646c001db64ad15297607b116c119c617d;p=tt-rss.git getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for the API) --- diff --git a/functions.php b/functions.php index d3f64b58..32c642a1 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; }