mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-04 07:58:46 +02:00
enable jQuery migrate warning only in dev. environment
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user