fixed function button bug that loaded it to all views, instead of only the owner view

This commit is contained in:
2017-08-22 23:44:53 +01:00
parent cfc1af2b69
commit e6b3c2391d
14 changed files with 25 additions and 71 deletions

View File

@ -149,12 +149,7 @@ class ComponentbuilderViewSite_views extends JViewLegacy
{
JToolBarHelper::custom('site_views.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
}
if ($this->canDo->get('core.import') && $this->canDo->get('site_view.import'))
{