Skip to content

Commit e7ba4ef

Browse files
committed
Sur la branche master: define DOL_DOCUMENT_ROOT if not defined
1 parent 18ffc4f commit e7ba4ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ function llxFooter() { }
9292
if (!$res && @file_exists("../../../main.inc.php")) $res = @include "../../../main.inc.php";
9393
if (!$res) die("Include of main fails");
9494

95+
if(!defined('DOL_DOCUMENT_ROOT'))
96+
define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);
97+
9598
require DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php'; // auth method
9699
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
97100

0 commit comments

Comments
 (0)