Skip to content

Commit

Permalink
Sur la branche master: define DOL_DOCUMENT_ROOT if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfox committed Oct 27, 2020
1 parent 18ffc4f commit e7ba4ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function llxFooter() { }
if (!$res && @file_exists("../../../main.inc.php")) $res = @include "../../../main.inc.php";
if (!$res) die("Include of main fails");

if(!defined('DOL_DOCUMENT_ROOT'))
define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);

require DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php'; // auth method
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';

Expand Down

0 comments on commit e7ba4ef

Please sign in to comment.