mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
N°8632 - block parameter file from request
This commit is contained in:
@@ -43,10 +43,12 @@ const EXIT_CODE_ERROR = -1;
|
||||
const EXIT_CODE_FATAL = -2;
|
||||
|
||||
try {
|
||||
// Do this before loging, in order to allow setting user credentials from within the file
|
||||
utils::UseParamFile();
|
||||
if (utils::IsModeCLI()) {
|
||||
// Do this before loging, in order to allow setting user credentials from within the file
|
||||
utils::UseParamFile();
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo "Error: ".$e->GetMessage()."<br/>\n";
|
||||
echo "Error: ".$e->GetMessage()."\n";
|
||||
exit(EXIT_CODE_FATAL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user