N°8760: revert dry removal audit and use real file deletion again

code formatting
This commit is contained in:
odain
2025-12-04 16:51:02 +01:00
parent ae980e365d
commit 9f3d7d2c36
20 changed files with 121 additions and 126 deletions

View File

@@ -2,9 +2,7 @@
require_once(dirname(__DIR__, 2).'/approot.inc.php');
require_once(APPROOT.'application/application.inc.php');
$sEnv = null;
if (isset($argv)) {
foreach ($argv as $iArg => $sArg) {
if (preg_match('/^--env=(.*)$/', $sArg, $aMatches)) {
@@ -22,11 +20,12 @@ $sConfFile = utils::GetConfigFilePath($sEnv);
try {
MetaModel::Startup($sConfFile, false /* $bModelOnly */, true /* $bAllowCache */, false /* $bTraceSourceFiles */, $sEnv);
}
catch (\Throwable $e) {
} catch (\Throwable $e) {
echo $e->getMessage();
echo $e->getTraceAsString();
\SetupLog::Error("Cannot read model from provided environment", null,
\SetupLog::Error(
"Cannot read model from provided environment",
null,
[
'env' => $sEnv,
'error' => $e->getMessage(),
@@ -39,4 +38,4 @@ catch (\Throwable $e) {
$aClasses = MetaModel::GetClasses();
echo json_encode($aClasses);
echo json_encode($aClasses);