diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 4160b2f921..1a3794ce17 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -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 "\n"; } - echo "

Aborting...

\n"; + if ($bExitOnError) echo "

Aborting...

\n"; echo "\n"; - exit; + if ($bExitOnError) exit; } }