From f0715baf7deaef796cf8f64339955e7d621c12da Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 1 Feb 2022 11:34:09 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04714=20move=20constant=20from=20core/con?= =?UTF-8?q?fig.class.inc.php=20to=20approot.inc.php=20see=20N=C2=B04406?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- approot.inc.php | 13 +++++++++++++ core/config.class.inc.php | 11 ----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/approot.inc.php b/approot.inc.php index a180e8560..e56fe770e 100644 --- a/approot.inc.php +++ b/approot.inc.php @@ -3,4 +3,17 @@ define('APPROOT', dirname(__FILE__).'/'); define('APPCONF', APPROOT.'conf/'); + +/** + * Constant containing the iTop core version, whatever application was built + * + * Note that in iTop 3.0.0 we used {@see ITOP_DESIGN_LATEST_VERSION} to get core version. + * When releasing, both constants should be updated : see `.make/release/update-versions.php` for that ! + * + * @since 2.7.7 3.0.1 3.1.0 N°4714 constant creation + * @used-by utils::GetItopPatchVersion + */ +define('ITOP_CORE_VERSION', '2.7.7'); + + require_once APPROOT.'bootstrap.inc.php'; diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 6036b8f02..2adc5023c 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -31,17 +31,6 @@ define('ITOP_APPLICATION_SHORT', 'iTop'); */ define('ITOP_VERSION', '2.7.0-dev'); -/** - * Constant containing the iTop core version, whatever application was built - * - * Note that in iTop 3.0.0 we used {@see ITOP_DESIGN_LATEST_VERSION} to get core version. - * When releasing, both constants should be updated : see `.make/release/update-versions.php` for that ! - * - * @since 2.7.7 3.0.1 3.1.0 N°4714 constant creation - * @used-by utils::GetItopPatchVersion - */ -define('ITOP_CORE_VERSION', '2.7.7'); - define('ITOP_REVISION', 'svn'); define('ITOP_BUILD_DATE', '$WCNOW$'); define('ITOP_VERSION_FULL', ITOP_VERSION.'-'.ITOP_REVISION);