reverted so branch is consistent for patch
This commit is contained in:
@@ -131,9 +131,6 @@ if ($domains_processed == 1) {
|
|||||||
if (strlen($_SESSION['switch']['sounds']['dir']) > 0) {
|
if (strlen($_SESSION['switch']['sounds']['dir']) > 0) {
|
||||||
$tmp .= correct_path(" sounds_dir = [[".$_SESSION['switch']['sounds']['dir']."]];\n");
|
$tmp .= correct_path(" sounds_dir = [[".$_SESSION['switch']['sounds']['dir']."]];\n");
|
||||||
}
|
}
|
||||||
if (strlen($_SESSION['switch']['phrases']['dir']) > 0) {
|
|
||||||
$tmp .= correct_path(" phrases_dir = [[".$_SESSION['switch']['phrases']['dir']."]];\n");
|
|
||||||
}
|
|
||||||
if (strlen($_SESSION['switch']['db']['dir']) > 0) {
|
if (strlen($_SESSION['switch']['db']['dir']) > 0) {
|
||||||
$tmp .= correct_path(" database_dir = [[".$_SESSION['switch']['db']['dir']."]];\n");
|
$tmp .= correct_path(" database_dir = [[".$_SESSION['switch']['db']['dir']."]];\n");
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-1
@@ -142,9 +142,18 @@
|
|||||||
table.insert(xml, [[ </macro>]]);;
|
table.insert(xml, [[ </macro>]]);;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require "resources.functions.settings";
|
||||||
|
settings = settings(domain_uuid);
|
||||||
|
lang_path = "/usr/local/freeswitch/conf/lang/";
|
||||||
|
if (settings['switch']['phrases'] ~= nil) then
|
||||||
|
if (settings['switch']['phrases']['dir'] ~= nil) then
|
||||||
|
lang_path = settings['switch']['phrases']['dir'];
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--read root xml language file, parse included xml files
|
--read root xml language file, parse included xml files
|
||||||
local xml_file_paths = {}
|
local xml_file_paths = {}
|
||||||
local file_handle = io.open(phrases_dir.."/"..language.."/"..language..".xml", "r");
|
local file_handle = io.open(lang_path.."/"..language.."/"..language..".xml", "r");
|
||||||
if (file_handle ~= nil) then
|
if (file_handle ~= nil) then
|
||||||
for file_line in file_handle:lines() do
|
for file_line in file_handle:lines() do
|
||||||
if (string.find(file_line, 'cmd="include" data="', 0, true) ~= nil) then
|
if (string.find(file_line, 'cmd="include" data="', 0, true) ~= nil) then
|
||||||
|
|||||||
Reference in New Issue
Block a user