From 034447daa3618d432e3076437c4d775c76bc9e2f Mon Sep 17 00:00:00 2001 From: Jean-Laurent DUZANT <jean-laurent.duzant@xelians.fr> Date: Fri, 17 Feb 2023 17:45:10 +0100 Subject: [PATCH] FEAT #23832 TIME 0:05 replace config.xml to config.json --- .gitignore | 2 +- rest/index.php | 2 +- test/unitTests/define.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index da3020b182..d7c05e82fc 100755 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /.angular/cache -config/config.xml +config/config.json .vscode/ .*.swp .phplint-cache diff --git a/rest/index.php b/rest/index.php index 2f455c90a5..6fc30fccd4 100755 --- a/rest/index.php +++ b/rest/index.php @@ -36,7 +36,7 @@ $app->add(function (\Slim\Psr7\Request $request, \Psr\Http\Server\RequestHandler $response = new \SrcCore\http\Response(); $configPath = \SrcCore\models\CoreConfigModel::getConfigPath(); - if (!is_file($configPath . '/config.xml')) { + if (!is_file($configPath . '/config.json')) { return $response->withStatus(400)->withJson(['errors' => 'Configuration file is missing']); } diff --git a/test/unitTests/define.php b/test/unitTests/define.php index 393e7af7f2..febfd3b97f 100755 --- a/test/unitTests/define.php +++ b/test/unitTests/define.php @@ -10,7 +10,7 @@ require_once 'vendor/autoload.php'; $id = 1; -if (empty($_SERVER['CONFIG_DIR']) && is_file("{$_SERVER['PWD']}/config/config.xml")) { +if (empty($_SERVER['CONFIG_DIR']) && is_file("{$_SERVER['PWD']}/config/config.json")) { $_SERVER['CONFIG_DIR'] = "{$_SERVER['PWD']}/config/"; } -- GitLab