2
0
forked from Wavyzz/dolibarr

Use isModEnabled

This commit is contained in:
Alexandre SPANGARO
2022-09-25 06:26:04 +02:00
parent b1f425b703
commit 37834d3c62
5 changed files with 5 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ if ($id > 0 || !empty($ref)) {
// Thirdparty
$morehtmlref.='<br>'.$langs->trans('ThirdParty') . ' : ' . (is_object($object->thirdparty) ? $object->thirdparty->getNomUrl(1) : '');
// Project
if (!empty($conf->projet->enabled))
if (isModEnabled('projet'))
{
$langs->load("projects");
$morehtmlref.='<br>'.$langs->trans('Project') . ' ';