From 70276e1548f26867e44bc4f4a53c00a809d42b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20David?= Date: Tue, 8 Jun 2021 16:28:08 +0200 Subject: [PATCH] [Descriptor] fix: require --- core/modules/modDigiriskDolibarr.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/modDigiriskDolibarr.class.php b/core/modules/modDigiriskDolibarr.class.php index 02152cf4b..5d942c6cc 100644 --- a/core/modules/modDigiriskDolibarr.class.php +++ b/core/modules/modDigiriskDolibarr.class.php @@ -650,7 +650,7 @@ public function init($options = '') if ( $conf->global->DIGIRISKDOLIBARR_ACTIVE_STANDARD == 0 ) { - require_once '../../class/digiriskstandard.class.php'; + require_once __DIR__ . '/../../class/digiriskstandard.class.php'; $digiriskstandard = new DigiriskStandard($this->db); $digiriskstandard->ref = 'DU'; @@ -665,7 +665,7 @@ public function init($options = '') if ( $conf->global->DIGIRISKDOLIBARR_THIRDPARTY_SET == 0 ) { require_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php'; - require_once '../../class/digiriskresources.class.php'; + require_once __DIR__ . '/../../class/digiriskresources.class.php'; $societe = new Societe($this->db); $resources = new DigiriskResources($this->db);