mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Fix to not duplicate hook installation (oops)
This commit is contained in:
parent
950b7a8a5c
commit
f79ae32ea0
@ -162,23 +162,24 @@
|
|||||||
echo '<br>' . $setup_info[$appname]['title'] . ' '
|
echo '<br>' . $setup_info[$appname]['title'] . ' '
|
||||||
. lang('tables installed, unless there are errors printed above') . '.';
|
. lang('tables installed, unless there are errors printed above') . '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($phpgw_setup->app_registered($setup_info[$appname]['name']))
|
|
||||||
{
|
|
||||||
$phpgw_setup->update_app($setup_info[$appname]['name']);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$phpgw_setup->register_app($setup_info[$appname]['name']);
|
if ($phpgw_setup->app_registered($setup_info[$appname]['name']))
|
||||||
}
|
{
|
||||||
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('registered') . '.';
|
$phpgw_setup->update_app($setup_info[$appname]['name']);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$phpgw_setup->register_app($setup_info[$appname]['name']);
|
||||||
|
}
|
||||||
|
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('registered') . '.';
|
||||||
|
|
||||||
if ($setup_info[$appname]['hooks'])
|
if ($setup_info[$appname]['hooks'])
|
||||||
{
|
{
|
||||||
$phpgw_setup->register_hooks($setup_info[$appname]['name']);
|
$phpgw_setup->register_hooks($setup_info[$appname]['name']);
|
||||||
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('hooks registered') . '.';
|
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('hooks registered') . '.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw_setup->add_langs($appname);
|
$phpgw_setup->add_langs($appname);
|
||||||
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('Translations added') . '.';
|
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('Translations added') . '.';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user