@@ -9,16 +9,16 @@ |
||
9 | 9 | |
10 | 10 | use Alxarafe\Helpers\Debug; |
11 | 11 | |
12 | -include BASE_PATH . '/config/constants.php'; |
|
12 | +include BASE_PATH.'/config/constants.php'; |
|
13 | 13 | |
14 | -require_once BASE_PATH . '/vendor/autoload.php'; |
|
14 | +require_once BASE_PATH.'/vendor/autoload.php'; |
|
15 | 15 | |
16 | 16 | $controller = filter_input(INPUT_GET, 'controller') ?: 'home'; |
17 | 17 | $method = filter_input(INPUT_GET, 'method') ?: 'index'; |
18 | 18 | |
19 | 19 | if (isset($_POST['next'])) { |
20 | 20 | $method = $_POST['next']; |
21 | - Debug::addMessage('Deprecated', 'This is necessary for installation. Current pass: ' . $method); |
|
21 | + Debug::addMessage('Deprecated', 'This is necessary for installation. Current pass: '.$method); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | include "dolibarr/htdocs/$controller/$method.php"; |
@@ -8,11 +8,11 @@ discard block |
||
8 | 8 | |
9 | 9 | define('SERVER_NAME', filter_input(INPUT_SERVER, 'SERVER_NAME')); |
10 | 10 | define('APP_PROTOCOL', filter_input(INPUT_SERVER, 'REQUEST_SCHEME')); |
11 | -define('SITE_URL', APP_PROTOCOL . '://' . SERVER_NAME); |
|
12 | -define('BASE_URI', SITE_URL . APP_URI); |
|
11 | +define('SITE_URL', APP_PROTOCOL.'://'.SERVER_NAME); |
|
12 | +define('BASE_URI', SITE_URL.APP_URI); |
|
13 | 13 | |
14 | -define('DOL_BASE_PATH', BASE_PATH . '/dolibarr/htdocs'); |
|
15 | -define('DOL_BASE_URI', BASE_URI . '/dolibarr/htdocs'); |
|
14 | +define('DOL_BASE_PATH', BASE_PATH.'/dolibarr/htdocs'); |
|
15 | +define('DOL_BASE_URI', BASE_URI.'/dolibarr/htdocs'); |
|
16 | 16 | |
17 | 17 | define('CORE_FOLDER', '/core'); |
18 | 18 | define('CONFIG_FOLDER', '/core'); |
@@ -23,20 +23,20 @@ discard block |
||
23 | 23 | define('TEMPLATES_FOLDER', '/views/templates'); |
24 | 24 | define('PLUGINS_FOLDER', '/plugins'); |
25 | 25 | define('CACHE_FOLDER', '/../cache'); |
26 | -define('VENDOR_FOLDER', BASE_URI . '/vendor'); |
|
26 | +define('VENDOR_FOLDER', BASE_URI.'/vendor'); |
|
27 | 27 | |
28 | -define('CORE_PATH', BASE_PATH . CORE_FOLDER); |
|
29 | -define('CONFIG_PATH', BASE_PATH . CONFIG_FOLDER); |
|
30 | -define('CONTROLLERS_PATH', BASE_PATH . CONTROLLERS_FOLDER); |
|
31 | -define('HELPERS_PATH', BASE_PATH . HELPERS_FOLDER); |
|
32 | -define('MODELS_PATH', BASE_PATH . MODELS_FOLDER); |
|
33 | -define('SKINS_PATH', BASE_PATH . SKINS_FOLDER); |
|
34 | -define('TEMPLATES_PATH', BASE_PATH . TEMPLATES_FOLDER); |
|
35 | -define('PLUGINS_PATH', BASE_PATH . PLUGINS_FOLDER); |
|
36 | -define('CACHE_PATH', BASE_PATH . CACHE_FOLDER); |
|
28 | +define('CORE_PATH', BASE_PATH.CORE_FOLDER); |
|
29 | +define('CONFIG_PATH', BASE_PATH.CONFIG_FOLDER); |
|
30 | +define('CONTROLLERS_PATH', BASE_PATH.CONTROLLERS_FOLDER); |
|
31 | +define('HELPERS_PATH', BASE_PATH.HELPERS_FOLDER); |
|
32 | +define('MODELS_PATH', BASE_PATH.MODELS_FOLDER); |
|
33 | +define('SKINS_PATH', BASE_PATH.SKINS_FOLDER); |
|
34 | +define('TEMPLATES_PATH', BASE_PATH.TEMPLATES_FOLDER); |
|
35 | +define('PLUGINS_PATH', BASE_PATH.PLUGINS_FOLDER); |
|
36 | +define('CACHE_PATH', BASE_PATH.CACHE_FOLDER); |
|
37 | 37 | //define('VENDOR_PATH', BASE_PATH . VENDOR_FOLDER); |
38 | 38 | |
39 | 39 | // Dolibarr deprecated constants |
40 | -define('DOL_CLASS_PATH', 'class/'); // Filesystem path to class dir (defined only for some code that want to be compatible with old versions without this parameter) |
|
41 | -define('DOL_DATA_ROOT', BASE_PATH . '/dolibarr/doc'); // Filesystem data (documents) |
|
42 | -define('DOL_DOCUMENT_ROOT', DOL_BASE_PATH); // Filesystem core php (htdocs) |
|
40 | +define('DOL_CLASS_PATH', 'class/'); // Filesystem path to class dir (defined only for some code that want to be compatible with old versions without this parameter) |
|
41 | +define('DOL_DATA_ROOT', BASE_PATH.'/dolibarr/doc'); // Filesystem data (documents) |
|
42 | +define('DOL_DOCUMENT_ROOT', DOL_BASE_PATH); // Filesystem core php (htdocs) |