From 06f17da1e542ab2ca1b61d18d9a729e6b9ede21c Mon Sep 17 00:00:00 2001 From: jfefe <jfefe@aternatik.fr> Date: Sun, 2 Feb 2014 09:34:34 +0100 Subject: [PATCH] Fix for custom directory --- resource_planning.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resource_planning.php b/resource_planning.php index 4ca5a9684c2..509278db693 100644 --- a/resource_planning.php +++ b/resource_planning.php @@ -37,6 +37,7 @@ // Change this following line to use the correct relative path (../, ../../, etc) $res=0; +if (! $res && file_exists("../main.inc.php")) $res=@include '../main.inc.php'; if (! $res && file_exists("../../main.inc.php")) $res=@include '../../main.inc.php'; // to work if your module directory is into dolibarr root htdocs directory if (! $res && file_exists("../../../main.inc.php")) $res=@include '../../../main.inc.php'; // to work if your module directory is into a subdir of root htdocs directory -- GitLab