enable jQuery migrate warning only in dev. environment

This commit is contained in:
Steffunky
2018-10-01 16:12:20 +02:00
committed by Steffunky
parent 55309be9a1
commit 9972e253d5
8 changed files with 872 additions and 629 deletions

View File

@@ -1970,4 +1970,14 @@ class utils
$aHugeClasses = MetaModel::GetConfig()->Get('high_cardinality_classes');
return in_array($sClass, $aHugeClasses);
}
/**
* Check if iTop is in a development environment (VCS vs build number)
*
* @return bool
*/
public static function IsDevelopmentEnvironment()
{
return ITOP_REVISION === 'svn';
}
}