Skip to content

Commit

Permalink
Added clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smz committed Dec 14, 2014
1 parent 010fbcd commit 0f57ab4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/com_content/models/categories.php
Expand Up @@ -111,7 +111,10 @@ public function getItems($recursive = false)

$options = array();
$options['countItems'] = $params->get('show_cat_num_articles_cat', 1) || !$params->get('show_empty_categories_cat', 0);

// Setting the 'currentlang' option to 1 filters the returned items count to those assigned to the active language and to "All"
$options['currentlang'] = 1;

$categories = JCategories::getInstance('Content', $options);
$this->_parent = $categories->get($this->getState('filter.parentId', 'root'));

Expand Down

0 comments on commit 0f57ab4

Please sign in to comment.