fixed function button bug that loaded it to all views, instead of only the owner view
This commit is contained in:
@@ -149,12 +149,7 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('admin_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('admin_view.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewCustom_admin_views extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('custom_admin_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('custom_admin_view.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('custom_codes.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('custom_code.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewDynamic_gets extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('dynamic_gets.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('dynamic_get.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewFields extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('fields.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('field.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewFieldtypes extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('fieldtypes.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('fieldtype.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewLayouts extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('layouts.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('layout.import'))
|
||||
{
|
||||
|
@@ -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'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewSnippets extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('snippets.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('snippet.import'))
|
||||
{
|
||||
|
@@ -149,12 +149,7 @@ class ComponentbuilderViewTemplates extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('templates.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('template.import'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user