mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix use of POST var, version, which makes this app actually useful again
This commit is contained in:
parent
feb9a52840
commit
c483096849
@ -113,8 +113,9 @@
|
|||||||
$GLOBALS['setup_tpl']->set_var('description',lang('App process') . ':');
|
$GLOBALS['setup_tpl']->set_var('description',lang('App process') . ':');
|
||||||
$GLOBALS['setup_tpl']->pparse('out','header');
|
$GLOBALS['setup_tpl']->pparse('out','header');
|
||||||
|
|
||||||
$appname = get_var('appname',Array('POST'));
|
$appname = get_var('appname','POST');
|
||||||
$install = get_var('install',Array('POST'));
|
$install = get_var('install','POST');
|
||||||
|
$version = get_var('version','POST');
|
||||||
|
|
||||||
while (list($appname,$key) = @each($install))
|
while (list($appname,$key) = @each($install))
|
||||||
{
|
{
|
||||||
@ -152,6 +153,7 @@
|
|||||||
$terror = $GLOBALS['phpgw_setup']->process->test_data($terror,$GLOBALS['DEBUG']);
|
$terror = $GLOBALS['phpgw_setup']->process->test_data($terror,$GLOBALS['DEBUG']);
|
||||||
|
|
||||||
$terror = $GLOBALS['phpgw_setup']->process->upgrade($terror,$GLOBALS['DEBUG']);
|
$terror = $GLOBALS['phpgw_setup']->process->upgrade($terror,$GLOBALS['DEBUG']);
|
||||||
|
$terror[$appname]['version'] = $version[$appname];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -161,7 +163,7 @@
|
|||||||
. lang('tables installed, unless there are errors printed above') . '.';
|
. lang('tables installed, unless there are errors printed above') . '.';
|
||||||
|
|
||||||
$GLOBALS['setup_info'][$appname]['version'] = $terror[$appname]['version'];
|
$GLOBALS['setup_info'][$appname]['version'] = $terror[$appname]['version'];
|
||||||
$GLOBALS['phpgw_setup']->register_app($terror[$appname]['name']);
|
$GLOBALS['phpgw_setup']->register_app($appname);
|
||||||
echo '<br>' . $terror[$appname]['title'] . ' ' . lang('registered') . '.';
|
echo '<br>' . $terror[$appname]['title'] . ' ' . lang('registered') . '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user