mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Internal: improved (a little) the API to detect datamodel inconsistencies
SVN:trunk[2392]
This commit is contained in:
@@ -3161,7 +3161,7 @@ abstract class MetaModel
|
||||
throw new CoreException('Failed to create an alias', array('aliases' => $aAliases, 'new'=>$sNewName));
|
||||
}
|
||||
|
||||
public static function CheckDefinitions()
|
||||
public static function CheckDefinitions($bExitOnError = true)
|
||||
{
|
||||
if (count(self::GetClasses()) == 0)
|
||||
{
|
||||
@@ -3411,9 +3411,9 @@ abstract class MetaModel
|
||||
}
|
||||
echo "</ul>\n";
|
||||
}
|
||||
echo "<p>Aborting...</p>\n";
|
||||
if ($bExitOnError) echo "<p>Aborting...</p>\n";
|
||||
echo "</div>\n";
|
||||
exit;
|
||||
if ($bExitOnError) exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user