Use isModEnabled
This commit is contained in:
parent
f091821f71
commit
88a68c12db
@ -1397,7 +1397,7 @@ class Account extends CommonObject
|
||||
$option = 'nolink';
|
||||
}
|
||||
|
||||
if (!empty($conf->accounting->enabled)) {
|
||||
if (isModEnabled('accounting')) {
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php';
|
||||
$langs->load("accountancy");
|
||||
$label .= '<br><b>'.$langs->trans('AccountAccounting').':</b> '.length_accountg($this->account_number);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user