Fix init hook context "cli" for all cli scripts

This commit is contained in:
Laurent Destailleur
2024-01-26 01:52:06 +01:00
parent 2b7e7d550a
commit 3a6468dd33
25 changed files with 89 additions and 0 deletions

View File

@@ -107,6 +107,12 @@ if (!($result > 0)) {
}
$user->getrights();
$hookmanager->initHooks(array('cli'));
/*
* Main
*/
print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n";
if (!isset($argv[1])) { // Check parameters