forked from extern/egroupware
allow to deinstall old "phpgwapi", but not new "api"
This commit is contained in:
parent
3c3210dba9
commit
849b94374b
@ -479,7 +479,7 @@ else
|
||||
if ($value['tables'] && $GLOBALS['egw_setup']->detection->check_app_tables($value['name'],True))
|
||||
{
|
||||
// Some tables missing
|
||||
$setup_tpl->set_var('remove',$key == 'phpgwapi' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('remove',$key == 'api' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('resolution','<a href="applications.php?resolve=' . $value['name'] . '&badinstall=True">' . lang('Potential Problem') . '</a>');
|
||||
$status = lang('Requires reinstall or manual repair') . ' - ' . $value['status'];
|
||||
}
|
||||
@ -503,7 +503,7 @@ else
|
||||
$setup_tpl->set_var('install',' ');
|
||||
// TODO display some info about breakage if you mess with this app
|
||||
$setup_tpl->set_var('upgrade','<input type="checkbox" name="upgrade[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('remove',$key == 'phpgwapi' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('remove',$key == 'api' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('resolution','');
|
||||
$status = lang('Requires upgrade') . ' - ' . $value['status'];
|
||||
}
|
||||
@ -512,7 +512,7 @@ else
|
||||
$setup_tpl->set_var('instimg','incomplete.png');
|
||||
$setup_tpl->set_var('instalt',lang('Not Completed'));
|
||||
$setup_tpl->set_var('install',' ');
|
||||
$setup_tpl->set_var('remove',$key == 'phpgwapi' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('remove',$key == 'api' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
if ($value['version'] == 'deleted')
|
||||
{
|
||||
$setup_tpl->set_var('bg_color','CCAAAA');
|
||||
@ -536,7 +536,7 @@ else
|
||||
$setup_tpl->set_var('install',' ');
|
||||
if ($values['currentver'])
|
||||
{
|
||||
$setup_tpl->set_var('remove',$key == 'phpgwapi' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('remove',$key == 'api' ? ' ' : '<input type="checkbox" name="remove[' . $value['name'] . ']" />');
|
||||
$setup_tpl->set_var('resolution','<a href="applications.php?resolve=' . $value['name'] . '">' . lang('Possible Solutions') . '</a>');
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user