Skip to content

Commit

Permalink
Bug tracker item #33234 - getRootId query called over and over again
Browse files Browse the repository at this point in the history
when creating new article same query runs 50-60 times..

tracked down the problem to a line of code that is not being used anyhow so i just commented it for now before removing.
  • Loading branch information
eitamar authored and eitamar committed Apr 6, 2014
1 parent 7e1b97d commit 60c2322
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libraries/joomla/access/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,8 @@ public static function checkGroup($groupId, $action, $asset = null)
// Default to the root asset node.
if (empty($asset))
{
// TODO: $rootId doesn't seem to be used!
$db = JFactory::getDbo();
$assets = JTable::getInstance('Asset', 'JTable', array('dbo' => $db));
$rootId = $assets->getRootId();
}

// Get the rules for the asset recursively to root if not already retrieved.
Expand Down

0 comments on commit 60c2322

Please sign in to comment.