FIX #10711 Try to init the hook at a higher level

This commit is contained in:
Laurent Destailleur 2019-02-28 11:12:02 +01:00
parent c444521abc
commit a58e3dc9bc

View File

@ -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;