Correct file names
cnf_read and cnf_wr can only write to a filename (not a path) inside /etc/asterisk
This commit is contained in:
parent
f51f839e9c
commit
1182d65971
|
@ -798,14 +798,14 @@ function Setup_RealTime()
|
||||||
foreach ($backup_ext as $value) {
|
foreach ($backup_ext as $value) {
|
||||||
if (file_exists($dir . '/extconfig' . $value)) {
|
if (file_exists($dir . '/extconfig' . $value)) {
|
||||||
// Last possibility is normal file extconfig.conf
|
// Last possibility is normal file extconfig.conf
|
||||||
$ext_conf_file = $dir . 'extconfig' . $value;
|
$ext_conf_file = 'extconfig' . $value;
|
||||||
$ext_conf = $cnf_read->getConfig($ext_conf_file);
|
$ext_conf = $cnf_read->getConfig($ext_conf_file);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (empty($ext_conf_file)) {
|
if (empty($ext_conf_file)) {
|
||||||
// Have not found a file, so will need to create. $ext_conf must be empty
|
// Have not found a file, so will need to create. $ext_conf must be empty
|
||||||
$ext_conf_file = $dir . '/extconfig.conf';
|
$ext_conf_file = 'extconfig.conf';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($ext_conf)) {
|
if (!empty($ext_conf)) {
|
||||||
|
|
Loading…
Reference in a new issue