N°4406 - Warning: Missing constant ITOP_DESIGN_LATEST_VERSION

This commit is contained in:
acognet
2021-11-09 15:20:42 +01:00
parent 2de6ba2827
commit 60a17c9a65
3 changed files with 5 additions and 8 deletions

View File

@@ -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';

View File

@@ -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

View File

@@ -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)