Fix to not duplicate hook installation (oops)

This commit is contained in:
Miles Lott 2002-01-05 18:12:16 +00:00
parent 950b7a8a5c
commit f79ae32ea0

View File

@ -162,7 +162,8 @@
echo '<br>' . $setup_info[$appname]['title'] . ' '
. lang('tables installed, unless there are errors printed above') . '.';
}
else
{
if ($phpgw_setup->app_registered($setup_info[$appname]['name']))
{
$phpgw_setup->update_app($setup_info[$appname]['name']);
@ -178,7 +179,7 @@
$phpgw_setup->register_hooks($setup_info[$appname]['name']);
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('hooks registered') . '.';
}
}
$phpgw_setup->add_langs($appname);
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('Translations added') . '.';
}