Define constant 'DOL_CLASS_PATH' for compatibilty between 2.8 and 2.9 releases
This allow to include class from modules like this :
if (!defined('DOL_CLASS_PATH'))
define('DOL_CLASS_PATH', null);
require_once(DOL_DOCUMENT_ROOT.'/categories/'.DOL_CLASS_PATH.'categorie.class.php');
This commit is contained in:
parent
29f23b3f93
commit
4f47b666ea
@ -92,6 +92,7 @@ if (empty($dolibarr_main_data_root))
|
||||
// Define some constants
|
||||
define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root); // Filesystem pages php (htdocs)
|
||||
define('DOL_DATA_ROOT', $dolibarr_main_data_root); // Filesystem donnes (documents)
|
||||
define('DOL_CLASS_PATH', 'class/'); // Filsystem path to class 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