This commit is contained in:
Laurent Destailleur
2025-11-14 12:02:16 +01:00
parent db7b669d2a
commit 29b1e75826
3 changed files with 18 additions and 9 deletions

View File

@@ -32,7 +32,10 @@
* \brief File that include the conf.php file and commons lib like functions.lib.php
*/
require_once 'version.inc.php';
define('DOL_MINOR_VERSION', '0.0-alpha');
require_once 'version.inc.php'; // Define the DOL_VERSION
// Define syslog constants
@@ -50,6 +53,11 @@ if (!defined('LOG_DEBUG')) {
}
}
// End of common declaration part
if (defined('DOL_INC_FOR_VERSION_ERROR')) {
return;
}
/**
* Replace session_start()

View File

@@ -30,7 +30,10 @@
*/
// Just to define version DOL_VERSION
require_once '../version.inc.php';
if (!defined('DOL_INC_FOR_VERSION_ERROR')) {
define('DOL_INC_FOR_VERSION_ERROR', '1');
}
require_once '../filefunc.inc.php';
// Define DOL_DOCUMENT_ROOT used for install/upgrade process

View File

@@ -35,14 +35,12 @@
if (!defined('DOL_APPLICATION_TITLE')) {
define('DOL_APPLICATION_TITLE', 'Dolibarr');
}
if (!defined('DOL_VERSION')) {
define('DOL_VERSION', '23.0.0-alpha'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c
}
// End of common declaration part
if (defined('DOL_INC_FOR_VERSION_ERROR')) {
return;
}
// The major version of Dolibarr
define('DOL_MAJOR_VERSION', '23');
define('DOL_VERSION', constant('DOL_MAJOR_VERSION').'.'.constant('DOL_MINOR_VERSION'));
// DOL_VERSION is now a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c
if (!defined('CERTIF_LNE')) {
define('CERTIF_LNE', '1'); // Set to 1 if the beta version is a candidate for certification or if the stable version has been certified. Use 2 for debug to force LNE features.