joomlaworks/k2 — pull request #106 by WooDzu (2014-01-07 13:12:48+00:00)
Title: Do not trigger onK2CommentsCounter in some cases

Hi.

This PR addresses an issue on Item List View when no comments or even comment's counters are to be displayed.

For instance when all of the following Category settings are OFF:
- Anchor link (with comments counter) to item's comment form *[catItemCommentsAnchor]*
- Anchor link (with comments counter) to comment form *[itemCommentsAnchor]*
- Comments *[itemComments]*

the `onK2CommentsCounter()` is still bein triggered causing unnecessary load and processing by 3rd party plugins.

Please accept this PR as w/o it it's killing my website causing unnecessary 550 database queries w/o caching