0
0

deleted config.json - no more need of it, added installer to create config.json

This commit is contained in:
Bryan
2019-06-02 15:20:08 +02:00
parent 312d03599f
commit 8abf2c5e8a
5 changed files with 160 additions and 15 deletions

View File

@@ -3,6 +3,5 @@
function load_config ( ) : array {
$config = file_get_contents ( 'config.json' );
$config = json_decode ( $config, true );
$config [ 'installation_path' ] = substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 );
return $config;
}