register_hooks, without hook array, does not reregister all app hooks, so use register_all_hooks instead

This commit is contained in:
Klaus Leithoff 2011-09-15 15:03:25 +00:00
parent d9905d3fb4
commit fc3fc728a4
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class addressbook_ui extends addressbook_bo
}
// make sure the hook for export_limit is registered
if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','addressbook')) $GLOBALS['egw']->hooks->register_hooks('addressbook');
if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','addressbook')) $GLOBALS['egw']->hooks->register_all_hooks();//register_hooks('addressbook');
$this->config =& $GLOBALS['egw_info']['server'];

View File

@ -165,7 +165,7 @@ class calendar_ui
unset($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox']);
// make sure the hook for export_limit is registered
if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','calendar')) $GLOBALS['egw']->hooks->register_hooks('calendar');
if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','calendar')) $GLOBALS['egw']->hooks->register_all_hooks(); //register_hooks('calendar');
}
/**