diff --git a/approot.inc.php b/approot.inc.php index a180e8560..24746e1f0 100644 --- a/approot.inc.php +++ b/approot.inc.php @@ -3,4 +3,9 @@ define('APPROOT', dirname(__FILE__).'/'); define('APPCONF', APPROOT.'conf/'); +/** + * iTop framework Version + */ +define('ITOP_DESIGN_LATEST_VERSION', '3.0'); + require_once APPROOT.'bootstrap.inc.php'; diff --git a/setup/itopdesignformat.class.inc.php b/setup/itopdesignformat.class.inc.php index 0b2653dca..c408c3683 100644 --- a/setup/itopdesignformat.class.inc.php +++ b/setup/itopdesignformat.class.inc.php @@ -17,9 +17,6 @@ * You should have received a copy of the GNU Affero General Public License */ -if (! defined('ITOP_DESIGN_LATEST_VERSION')){ - define('ITOP_DESIGN_LATEST_VERSION', '3.0'); -} /** * Utility to upgrade the format of a given XML datamodel to the latest version diff --git a/test/ItopDataTestCase.php b/test/ItopDataTestCase.php index ee9c18a35..cbbd820f4 100644 --- a/test/ItopDataTestCase.php +++ b/test/ItopDataTestCase.php @@ -79,11 +79,6 @@ class ItopDataTestCase extends ItopTestCase $sEnv = 'production'; $sConfigFile = APPCONF.$sEnv.'/'.ITOP_CONFIG_FILE; - - if (! defined('ITOP_DESIGN_LATEST_VERSION')){ - define('ITOP_DESIGN_LATEST_VERSION', '3.0'); - } - MetaModel::Startup($sConfigFile, false /* $bModelOnly */, true /* $bAllowCache */, false /* $bTraceSourceFiles */, $sEnv); if (static::USE_TRANSACTION)