Skip to content

Commit

Permalink
Reduce log message as suggested by mbabker
Browse files Browse the repository at this point in the history
  • Loading branch information
matrikular committed Oct 28, 2016
1 parent a7cd533 commit 5be7e4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/cms/helper/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ public static function getActions($component = '', $section = '', $id = 0)

$user = JFactory::getUser();

$path = JPATH_ADMINISTRATOR . '/components/' . $component . '/access.xml';

$actions = JAccess::getActionsFromFile($path, '/access/section[@name="component"]/');
$actions = JAccess::getActionsFromFile(
JPATH_ADMINISTRATOR . '/components/' . $component . '/access.xml', '/access/section[@name="component"]/'
);

if ($actions === false)
{
JLog::add(JText::sprintf('JLIB_ERROR_COMPONENT_SPECIFIC_ACCESS_XML_FILE_INVALID_FORMAT_OR_MISSING', $path), JLog::ERROR, 'jerror');
JLog::add(JText::sprintf('JLIB_ERROR_COMPONENT_SPECIFIC_ACCESS_XML_FILE_INVALID_FORMAT_OR_MISSING', $component), JLog::ERROR, 'jerror');

return $result;
}
Expand Down

0 comments on commit 5be7e4c

Please sign in to comment.