New: add directory for external module and other customization
This commit is contained in:
parent
4a577412d5
commit
ad16244f08
@ -286,7 +286,7 @@ if ($resql)
|
||||
}
|
||||
else
|
||||
{
|
||||
$sourcefile = DOL_EXTMODULE_ROOT."/".$module."/inc/boxes/".$boxname.".php";
|
||||
$sourcefile = DOL_DOCUMENT_EXTMODULE."/".$module."/inc/boxes/".$boxname.".php";
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -397,7 +397,7 @@ if ($resql)
|
||||
}
|
||||
else
|
||||
{
|
||||
$sourcefile = DOL_EXTMODULE_ROOT."/".$module."/inc/boxes/".$boxname.".php";
|
||||
$sourcefile = DOL_DOCUMENT_EXTMODULE."/".$module."/inc/boxes/".$boxname.".php";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@ -226,7 +226,7 @@ class InfoBox
|
||||
}
|
||||
else
|
||||
{
|
||||
$sourcefile = DOL_EXTMODULE_ROOT."/".$module."/inc/boxes/".$boxname.".php";
|
||||
$sourcefile = DOL_DOCUMENT_EXTMODULE."/".$module."/inc/boxes/".$boxname.".php";
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -295,7 +295,7 @@ class InfoBox
|
||||
}
|
||||
else
|
||||
{
|
||||
$sourcefile = DOL_EXTMODULE_ROOT."/".$module."/inc/boxes/".$boxname.".php";
|
||||
$sourcefile = DOL_DOCUMENT_EXTMODULE."/".$module."/inc/boxes/".$boxname.".php";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@ -105,7 +105,7 @@ define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root); // Filesystem core
|
||||
define('DOL_DATA_ROOT', $dolibarr_main_data_root); // Filesystem data (documents)
|
||||
define('DOL_CLASS_PATH', 'class/'); // Filesystem path to class dir
|
||||
define('DOL_CUSTOM_PATH', DOL_DOCUMENT_ROOT . '/custom'); // Filesystem path to custom dir
|
||||
define('DOL_EXTMODULE_ROOT', DOL_CUSTOM_PATH . '/modules'); // Filesystem path to external modules dir
|
||||
define('DOL_DOCUMENT_EXTMODULE', DOL_CUSTOM_PATH . '/modules'); // Filesystem path to external modules dir
|
||||
// If dolibarr_main_url_root = auto (Hidden feature for developers only), we try to forge it.
|
||||
if ($dolibarr_main_url_root == 'auto' && ! empty($_SERVER["SCRIPT_URL"]) && ! empty($_SERVER["SCRIPT_URI"]))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user