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

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

No files matched your search

-1
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;
}