]> git.wh0rd.org Git - tt-rss.git/commitdiff
getAllCounters: return category counters even if ENABLE_FEED_CATS is disabled (for...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 4 May 2011 08:10:30 +0000 (12:10 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 4 May 2011 08:10:30 +0000 (12:10 +0400)
functions.php

index d3f64b58f596908c1b204c0824e1bb87915bd3d1..32c642a19c4e17c17be4f9e604617a2b6b4347ee 100644 (file)
                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;
        }