diff --git a/.gitignore b/.gitignore index da3020b182d2c60134fa550800ac0093a74a9667..d7c05e82fc786dce7cfb6292edd0202c06636a20 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 2f455c90a5d282a73a8972fb35aba4034ef6e358..6fc30fccd47df48c65761133f524da4bd02eb161 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 393e7af7f2ecd5a0de496db1e7d171f995268383..febfd3b97f20c8a027119b983edc42866e9a3b20 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/"; }