Skip to content

Commit

Permalink
make sure that components are always preloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Sep 13, 2016
1 parent 43296b7 commit 4c5ef92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/joomla/access/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,12 @@ public static function getAssetRules($asset, $recursive = false, $recursiveParen
$extensionName = self::getExtensionNameFromAsset($asset);
$assetType = self::getAssetType($asset);

// Make sure the components assets are preloaded.
if (!self::$componentsPreloaded)
{
self::preload('components');
}

!JDEBUG ?: JProfiler::getInstance('Application')->mark('Before JAccess::getAssetRules (' . $asset . ')');

// Almost all calls should have recursive set to true so we'll get to take advantage of preloading.
Expand Down

0 comments on commit 4c5ef92

Please sign in to comment.