Merge remote-tracking branch 'origin/support/3.0' into develop

# Conflicts:
#	core/config.class.inc.php
This commit is contained in:
Pierre Goiffon
2021-12-23 10:05:53 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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})");
}
}

View File

@@ -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);