|
@@ -29,11 +29,11 @@ require '../main.inc.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/resource/class/dolresource.class.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
|
|
|
-if (!empty($conf->project->enabled)) {
|
|
|
+if (isModEnabled('project')) {
|
|
|
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
|
|
|
}
|
|
|
-if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
|
|
|
+if (isModEnabled('product') || isModEnabled('service')) {
|
|
|
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
|
|
}
|
|
|
|
|
@@ -349,7 +349,7 @@ if (!$ret) {
|
|
|
// Thirdparty
|
|
|
//$morehtmlref.='<br>'.$langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1);
|
|
|
// Project
|
|
|
- if (!empty($conf->project->enabled)) {
|
|
|
+ if (isModEnabled('project')) {
|
|
|
$langs->load("projects");
|
|
|
//$morehtmlref.='<br>'.$langs->trans('Project') . ' ';
|
|
|
$morehtmlref .= $langs->trans('Project').': ';
|
|
@@ -517,7 +517,7 @@ if (!$ret) {
|
|
|
// Thirdparty
|
|
|
$morehtmlref .= $langs->trans('ThirdParty').' : '.$fichinter->thirdparty->getNomUrl(1);
|
|
|
// Project
|
|
|
- if (!empty($conf->project->enabled)) {
|
|
|
+ if (isModEnabled('project')) {
|
|
|
$langs->load("projects");
|
|
|
$morehtmlref .= '<br>'.$langs->trans('Project').' ';
|
|
|
if ($user->rights->commande->creer) {
|