diff --git a/libraries/cms/helper/content.php b/libraries/cms/helper/content.php index 4747503f5c564..36061fed87c97 100644 --- a/libraries/cms/helper/content.php +++ b/libraries/cms/helper/content.php @@ -116,12 +116,7 @@ public static function getActions($component = '', $section = '', $id = 0) $assetName = $component; } - if (empty($section)) - { - $section = 'component'; - } - - $actions = JAccess::getActionsFromFile($path, "/access/section[@name='" . $section . "']/"); + $actions = JAccess::getActionsFromFile($path, "/access/section[@name='component']/"); foreach ($actions as $action) {