mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
register_hooks, without hook array, does not reregister all app hooks, so use register_all_hooks instead
This commit is contained in:
parent
d9905d3fb4
commit
fc3fc728a4
@ -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'];
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user