BugFixes in languages.lua
removed extra ;'s fix file_handle:close to be inside the if null check
This commit is contained in:
parent
fe9c46c0d0
commit
0111fff25b
|
|
@ -125,7 +125,7 @@
|
||||||
if (x > 0) then
|
if (x > 0) then
|
||||||
table.insert(xml, [[ </match>]]);
|
table.insert(xml, [[ </match>]]);
|
||||||
table.insert(xml, [[ </input>]]);
|
table.insert(xml, [[ </input>]]);
|
||||||
table.insert(xml, [[ </macro>]]);;
|
table.insert(xml, [[ </macro>]]);
|
||||||
end
|
end
|
||||||
table.insert(xml, [[ <macro name="]]..row.phrase_uuid..[[">]]);
|
table.insert(xml, [[ <macro name="]]..row.phrase_uuid..[[">]]);
|
||||||
table.insert(xml, [[ <input pattern=\"(.*)\">]]);
|
table.insert(xml, [[ <input pattern=\"(.*)\">]]);
|
||||||
|
|
@ -139,7 +139,7 @@
|
||||||
if (x > 0) then
|
if (x > 0) then
|
||||||
table.insert(xml, [[ </match>]]);
|
table.insert(xml, [[ </match>]]);
|
||||||
table.insert(xml, [[ </input>]]);
|
table.insert(xml, [[ </input>]]);
|
||||||
table.insert(xml, [[ </macro>]]);;
|
table.insert(xml, [[ </macro>]]);
|
||||||
end
|
end
|
||||||
|
|
||||||
--read root xml language file, parse included xml files
|
--read root xml language file, parse included xml files
|
||||||
|
|
@ -155,8 +155,8 @@
|
||||||
--freeswitch.consoleLog("notice", "file path = "..xml_file_path.."\n");
|
--freeswitch.consoleLog("notice", "file path = "..xml_file_path.."\n");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
file_handle:close();
|
||||||
end
|
end
|
||||||
file_handle:close();
|
|
||||||
|
|
||||||
--iterate array of file paths, get contents of other xml macro files
|
--iterate array of file paths, get contents of other xml macro files
|
||||||
for key, xml_file_path in pairs(xml_file_paths) do
|
for key, xml_file_path in pairs(xml_file_paths) do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue