mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-20 00:11:23 +01:00
Fix init hook context "cli" for all cli scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user