mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Automatically change Import/Export sidebox link to just 'Export' if the app has more than one plugin
This commit is contained in:
parent
505c87b946
commit
13844bbf17
@ -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'] = '';
|
||||
|
Loading…
Reference in New Issue
Block a user