only register hooks for installed applications

This commit is contained in:
Ralf Becker 2011-03-28 17:54:02 +00:00
parent 9ab2212cfa
commit 70c105d2ec

View File

@ -233,8 +233,9 @@ else
if(@get_var('hooks', Array('GET')))
{
// Find & register all application hooks
foreach($setup_info as $appname => $info) {
$GLOBALS['egw_setup']->register_hooks($appname);
foreach($setup_info as $appname => $info)
{
if ($info['currentver']) $GLOBALS['egw_setup']->register_hooks($appname);
}
echo lang('All hooks registered') . '<br />';
}