From a9a7a5d939fd4e9108b483ad8ad938abc9748152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ndor?= Date: Fri, 28 May 2021 09:27:44 +0200 Subject: [PATCH] load specified config --- record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record.php b/record.php index 6a85782..975a2fd 100644 --- a/record.php +++ b/record.php @@ -44,7 +44,7 @@ if (!function_exists('json_decode')) $config = isset($opts['c']) ? $opts['c'] : __DIR__.'/config.json'; if (!file_exists($config)) logger(1, 'Config file not found: '.$config, 1, true); -if (!$_set = @json_decode(@file_get_contents(__DIR__.'/config.json'))) +if (!$_set = @json_decode(@file_get_contents($config))) logger(1, 'Unable to load or parse configuration file', 1, true); // Loop indefinitely