Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Oct 16, 2015
1 parent 3b59a6b commit 6017af0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/legacy/categories/categories.php
Expand Up @@ -261,7 +261,8 @@ protected function _load($id)

if ($app->isSite() && JLanguageMultilang::isEnabled())
{
$query->join('LEFT', '#__categories AS s ON (s.lft < c.lft AND s.rgt > c.rgt AND c.language in (' . $db->Quote(JFactory::getLanguage()->getTag()) . ',' . $db->Quote('*') . ')) OR (s.lft >= c.lft AND s.rgt <= c.rgt)');
$query->join('LEFT', '#__categories AS s ON (s.lft < c.lft AND s.rgt > c.rgt AND c.language in (' . $db->Quote(JFactory::getLanguage()->getTag()) .
',' . $db->Quote('*') . ')) OR (s.lft >= c.lft AND s.rgt <= c.rgt)');
}
else
{
Expand All @@ -274,7 +275,7 @@ protected function _load($id)
{
$query->where('c.language in (' . $db->Quote(JFactory::getLanguage()->getTag()) . ',' . $db->Quote('*') . ')');
}
}
}

// Note: i for item
if ($this->_options['countItems'] == 1)
Expand Down

0 comments on commit 6017af0

Please sign in to comment.