Make sure that changes to an Extension run reloadxml. Also changed the wording of a comment from //apply settings reminder to //apply settings.

This commit is contained in:
Mark Crane 2012-08-30 14:33:11 +00:00
parent 10321f8cba
commit daff383484
1 changed files with 12 additions and 14 deletions

View File

@ -1603,7 +1603,7 @@ function save_setting_xml() {
unset ($prep_statement); unset ($prep_statement);
} }
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
//$cmd = "api reloadxml"; //$cmd = "api reloadxml";
@ -1638,7 +1638,6 @@ function save_extension_xml() {
$prep_statement->execute(); $prep_statement->execute();
$i = 0; $i = 0;
$extension_xml_condensed = false; $extension_xml_condensed = false;
while($row = $prep_statement->fetch(PDO::FETCH_ASSOC)) { while($row = $prep_statement->fetch(PDO::FETCH_ASSOC)) {
$call_group = $row['call_group']; $call_group = $row['call_group'];
$call_group = str_replace(";", ",", $call_group); $call_group = str_replace(";", ",", $call_group);
@ -1905,9 +1904,8 @@ function save_extension_xml() {
//syncrhonize the phone directory //syncrhonize the phone directory
sync_directory(); sync_directory();
//$cmd = "api reloadxml"; //apply settings
//event_socket_request_cmd($cmd); $_SESSION["reload_xml"] = true;
//unset($cmd);
} }
} }
@ -2070,7 +2068,7 @@ function save_gateway_xml() {
} //end foreach } //end foreach
unset($prep_statement); unset($prep_statement);
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
@ -2106,7 +2104,7 @@ function save_module_xml() {
unset($xml); unset($xml);
fclose($fout); fclose($fout);
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
//$cmd = "api reloadxml"; //$cmd = "api reloadxml";
@ -2144,7 +2142,7 @@ function save_var_xml() {
unset($xml); unset($xml);
fclose($fout); fclose($fout);
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
//$cmd = "api reloadxml"; //$cmd = "api reloadxml";
@ -3279,7 +3277,7 @@ function save_dialplan_xml() {
unset($tmp); unset($tmp);
} //end while } //end while
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
} //end if (is_dir($_SESSION['switch']['dialplan']['dir'])) } //end if (is_dir($_SESSION['switch']['dialplan']['dir']))
@ -3686,7 +3684,7 @@ if (!function_exists('save_ivr_menu_xml')) {
} }
save_dialplan_xml(); save_dialplan_xml();
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
} }
@ -4143,7 +4141,7 @@ if (!function_exists('save_call_center_xml')) {
//save the dialplan xml files //save the dialplan xml files
save_dialplan_xml(); save_dialplan_xml();
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
@ -4185,7 +4183,7 @@ if (!function_exists('switch_conf_xml')) {
fwrite($fout, $file_contents); fwrite($fout, $file_contents);
fclose($fout); fclose($fout);
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
} }
@ -4217,7 +4215,7 @@ if (!function_exists('xml_cdr_conf_xml')) {
fwrite($fout, $file_contents); fwrite($fout, $file_contents);
fclose($fout); fclose($fout);
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
} }
@ -4279,7 +4277,7 @@ if (!function_exists('save_sip_profile_xml')) {
unset($sql, $result, $row_count); unset($sql, $result, $row_count);
} //end if results } //end if results
//apply settings reminder //apply settings
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
} }
} }