summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-pbx/luasrc/model/cbi/pbx.lua
diff options
context:
space:
mode:
authorIordan Iordanov <iiordanov@gmail.com>2011-11-05 18:34:12 +0000
committerIordan Iordanov <iiordanov@gmail.com>2011-11-05 18:34:12 +0000
commit5cd67479c341475f3dde4e13c527aae387abb679 (patch)
tree5d253873a66a8cbef9df20157e7d2dd19d4152ec /applications/luci-pbx/luasrc/model/cbi/pbx.lua
parentf9765334339e7d4c264df9029e8f6d5d82c1506c (diff)
1) Massive whitespace reorganization (untabified, and made consistent everything).
2) Dropped some currently unneeded, commented-out, code from pbx-users.lua.
Diffstat (limited to 'applications/luci-pbx/luasrc/model/cbi/pbx.lua')
-rw-r--r--applications/luci-pbx/luasrc/model/cbi/pbx.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/applications/luci-pbx/luasrc/model/cbi/pbx.lua b/applications/luci-pbx/luasrc/model/cbi/pbx.lua
index 13cbcd569..3f2ee674b 100644
--- a/applications/luci-pbx/luasrc/model/cbi/pbx.lua
+++ b/applications/luci-pbx/luasrc/model/cbi/pbx.lua
@@ -52,16 +52,16 @@ function format_indices(string, indices)
for lpos,splitline in ipairs(splitlines) do
loutput = ""
for ipos,index in ipairs(indices) do
- if splitline[index] ~= nil then
- loutput = loutput .. string.format("%-50s", splitline[index])
- else
- loutput = nil
- break
- end
+ if splitline[index] ~= nil then
+ loutput = loutput .. string.format("%-50s", splitline[index])
+ else
+ loutput = nil
+ break
+ end
end
-
+
if loutput ~= nil then
- output = output .. loutput .. "\n"
+ output = output .. loutput .. "\n"
end
end
return output
@@ -69,7 +69,7 @@ end
m = Map (modulename, translate("PBX Main Page"),
- translate("This configuration page allows you to configure a phone system (PBX) service which\
+ translate("This configuration page allows you to configure a phone system (PBX) service which\
permits making phone calls through multiple Google and SIP (like Sipgate,\
SipSorcery, and Betamax) accounts and sharing them among many SIP devices. \
Note that Google accounts, SIP accounts, and local user accounts are configured in the \
@@ -84,7 +84,7 @@ m = Map (modulename, translate("PBX Main Page"),
-----------------------------------------------------------------------------------------
s = m:section(NamedSection, "connection_status", "main",
- translate("Service Control and Connection Status"))
+ translate("Service Control and Connection Status"))
s.anonymous = true
s:option (DummyValue, "status", translate("Service Status"))
@@ -103,7 +103,7 @@ function sts.cfgvalue(self, section)
return format_indices(regs, {1, 5}) ..
format_indices(jabs, {2, 4}) .. "\n" ..
- format_indices(usrs, {1} ) .. "\n" .. chan
+ format_indices(usrs, {1} ) .. "\n" .. chan
elseif server == "freeswitch" then
return "Freeswitch is not supported yet.\n"