FIX #10711 Try to init the hook at a higher level
This commit is contained in:
parent
c444521abc
commit
a58e3dc9bc
@ -953,7 +953,9 @@ class Cronjob extends CommonObject
|
||||
function run_jobs($userlogin)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $langs, $conf;
|
||||
global $langs, $conf, $hookmanager;
|
||||
|
||||
$hookmanager->initHooks(array('cron'));
|
||||
|
||||
$now=dol_now();
|
||||
$error = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user