Browse Source

load specified config

master
Sándor 6 months ago
parent
commit
a9a7a5d939
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      record.php

+ 1
- 1
record.php View File

@ -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


Loading…
Cancel
Save