mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
Merge remote-tracking branch 'origin/support/3.0' into develop
# Conflicts: # core/config.class.inc.php
This commit is contained in:
@@ -54,6 +54,6 @@ class iTopXmlVersionIntegrationTest extends ItopTestCase
|
||||
$sCoreVersion = $aCoreVersionParts[0].'.'.$aCoreVersionParts[1];
|
||||
|
||||
$sXMLVersion = ITOP_DESIGN_LATEST_VERSION;
|
||||
$this->assertSame($sXMLVersion, $sCoreVersion, "XML datamodel version ($sXMLVersion) is not aligned with the app. core version ($sCoreVersion)");
|
||||
$this->assertSame($sXMLVersion, $sCoreVersion, "XML datamodel version (ITOP_DESIGN_LATEST_VERSION={$sXMLVersion}) is not aligned with the app. core version (ITOP_VERSION={$sCoreVersion})");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ catch(Exception $e)
|
||||
{
|
||||
$oP->p("Error: ".$e->GetMessage());
|
||||
$oP->output();
|
||||
exit -2;
|
||||
exit(-2);
|
||||
}
|
||||
|
||||
if (utils::IsModeCLI())
|
||||
@@ -244,14 +244,14 @@ if (utils::IsModeCLI())
|
||||
{
|
||||
$oP->p("Access restricted or wrong credentials ('$sAuthUser')");
|
||||
$oP->output();
|
||||
exit -1;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
if (!is_readable($sCsvFile))
|
||||
{
|
||||
$oP->p("Input file could not be found or could not be read: '$sCsvFile'");
|
||||
$oP->output();
|
||||
exit -1;
|
||||
exit(-1);
|
||||
}
|
||||
$sCSVData = file_get_contents($sCsvFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user