diff --git a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php index c2be34db08..dddd11edad 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -107,6 +107,7 @@ class importexport_admin_prefs_sidebox_hooks // Add in import / export, if available $file = array(); + $plugins = importexport_helper_functions::get_plugins($appname); if($cache[$appname]['import']) { $file['Import CSV'] = array('link' => "javascript:egw_openWindowCentered2('". @@ -116,7 +117,7 @@ class importexport_admin_prefs_sidebox_hooks ),false)."','_blank',500,220,'yes')", 'icon' => 'import', 'app' => 'importexport', - 'text' => in_array($appname, array('calendar', 'sitemgr')) ? 'Import' : 'Import CSV' + 'text' => in_array($appname, array('sitemgr')) || count($plugins[$appname]['import']) > 1 ? 'Import' : 'Import CSV' ); if($GLOBALS['egw_info']['flags']['disable_importexport']['import']) { $file['Import CSV']['link'] = ''; @@ -133,7 +134,7 @@ class importexport_admin_prefs_sidebox_hooks ),false)."','_blank',850,440,'yes')", 'icon' => 'export', 'app' => 'importexport', - 'text' => in_array($appname, array('calendar', 'sitemgr')) ? 'Export' : 'Export CSV' + 'text' => in_array($appname, array('sitemgr')) || count($plugins[$appname]['export']) > 1 ? 'Export' : 'Export CSV' ); if($GLOBALS['egw_info']['flags']['disable_importexport']['export']) { $file['Export CSV']['link'] = '';