Change $setting to $settings (#7318)

* Change $setting to $settings

* Update app_defaults.php

* Update fax_queue.php

* Update xml_cdr.php

* Update email_queue.php

* Update transcribe.php

* Update send.php

* Update fax_queue.php

* Update fax_send.php

* Update app_defaults.php

* Update email_queue.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php

* Update app_defaults.php
This commit is contained in:
Alex
2025-03-14 15:19:49 -07:00
committed by GitHub
parent 7639f0755c
commit 1e96df6e95
22 changed files with 117 additions and 139 deletions

View File

@@ -27,13 +27,13 @@
if ($domains_processed == 1) {
//set the directory
if (!empty($setting->get('switch','conf'))) {
$xml_dir = $setting->get('switch','conf').'/autoload_configs';
if (!empty($settings->get('switch','conf'))) {
$xml_dir = $settings->get('switch','conf').'/autoload_configs';
$xml_file = $xml_dir."/local_stream.conf";
}
//rename the file
if (!empty($setting->get('switch','conf'))) {
if (!empty($settings->get('switch','conf'))) {
if (file_exists($xml_dir.'/local_stream.conf.xml')) {
rename($xml_dir.'/local_stream.conf', $xml_dir.'/'.$xml_file);
}
@@ -43,7 +43,7 @@ if ($domains_processed == 1) {
}
//add the music_on_hold list to the database
if (!empty($setting->get('switch','conf'))) {
if (!empty($settings->get('switch','conf'))) {
$sql = "select count(music_on_hold_uuid) from v_music_on_hold; ";
$num_rows = $database->select($sql, null, 'column');
unset($sql);