add hooks init

This commit is contained in:
Frédéric FRANCE 2022-11-30 18:00:39 +01:00
parent fc146b2dc6
commit 45b7ddb8a8

View File

@ -40,7 +40,7 @@ $id = GETPOST('account') ?GETPOST('account', 'alpha') : GETPOST('id');
$ref = GETPOST('ref');
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('bankstats', 'globalcard'));
$hookmanager->initHooks(array('bankannualreport', 'globalcard'));
// Security check
$fieldvalue = (!empty($id) ? $id : (!empty($ref) ? $ref : ''));