Skip to content
Snippets Groups Projects
Commit 06f17da1 authored by Jean-François Ferry's avatar Jean-François Ferry
Browse files

Fix for custom directory

parent b090a4d2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment