mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Rename to the switch_settings class.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
if ($domains_processed == 1) {
|
||||
|
||||
//add missing switch directories in default settings
|
||||
$obj = new freeswitch;
|
||||
$obj = new switch_settings;
|
||||
$obj->settings();
|
||||
unset($obj);
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* freeswitch class provides access methods related to FreeSWITCH
|
||||
* switch_settings class provides access methods related to FreeSWITCH
|
||||
*
|
||||
* @method settings will add missing switch directories to default settings
|
||||
*/
|
||||
class freeswitch {
|
||||
class switch_settings {
|
||||
|
||||
public $db;
|
||||
public $event_socket_ip_address;
|
||||
@@ -232,8 +232,10 @@ class freeswitch {
|
||||
|
||||
//set the default settings
|
||||
foreach ($array as $row) {
|
||||
if (!isset($_SESSION['switch'][$row['default_setting_subcategory']] && $row['default_setting_enabled'] != "false")) {
|
||||
$_SESSION['switch'][$row['default_setting_subcategory']] = $row['default_setting_value'];
|
||||
if (!isset($_SESSION['switch'][$row['default_setting_subcategory']])) {
|
||||
if ($row['default_setting_enabled'] != "false") {
|
||||
$_SESSION['switch'][$row['default_setting_subcategory']] = $row['default_setting_value'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user