Skip to content

Commit

Permalink
Update access.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Sep 13, 2016
1 parent 77ffef1 commit 3a51586
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/joomla/access/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ public static function preload($assetTypes = 'components', $reload = false)
if ($isDefault && !self::$componentsPreloaded)
{
// Mark in the profiler.
JDEBUG ? JProfiler::getInstance('Application')->mark('Start JAccess::preload(components)') : null;
JDEBUG ? JProfiler::getInstance('Application')->mark('Start JAccess::preload (all components)') : null;

self::preloadComponents();
self::$componentsPreloaded = true;

// Mark in the profiler.
JDEBUG ? JProfiler::getInstance('Application')->mark('Finish JAccess::preload(components)') : null;
JDEBUG ? JProfiler::getInstance('Application')->mark('Finish JAccess::preload (all components)') : null;
}

// Quick short circuit for default case
Expand All @@ -239,12 +239,12 @@ public static function preload($assetTypes = 'components', $reload = false)
{
if (!isset(self::$preloadedAssetTypes[$assetType]) || $reload)
{
JDEBUG ? JProfiler::getInstance('Application')->mark('Start JAccess Preloading Process (' . $assetType . ')') : null;
JDEBUG ? JProfiler::getInstance('Application')->mark('Start JAccess::preload (' . $assetType . ')') : null;

self::preloadPermissions($assetType);
self::$preloadedAssetTypes[$assetType] = true;

JDEBUG ? JProfiler::getInstance('Application')->mark('Finish JAccess Preloading Process (' . $assetType . ')') : null;
JDEBUG ? JProfiler::getInstance('Application')->mark('Finish JAccess::preload (' . $assetType . ')') : null;
}
}

Expand Down

0 comments on commit 3a51586

Please sign in to comment.