projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-mwan3: fix legacy uci api usage
[project/luci.git]
/
applications
/
luci-app-mwan3
/
luasrc
/
model
/
cbi
/
mwan
/
rule.lua
diff --git
a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
index
5b19693
..
f0b94bd
100644
(file)
--- a/
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
+++ b/
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
@@
-1,4
+1,9
@@
+-- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
+-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
+-- Licensed to the public under the GNU General Public License v2.
+
dsp = require "luci.dispatcher"
dsp = require "luci.dispatcher"
+uci = require "uci"
function ruleCheck()
function ruleCheck()
@@
-24,7
+29,7
@@
function ruleWarn(rule_error)
local warnings = ""
for i, k in pairs(rule_error) do
if rule_error[i] == true then
local warnings = ""
for i, k in pairs(rule_error) do
if rule_error[i] == true then
- warnings = warnings .. string.format("<strong>%s</strong><
/br
>",
+ warnings = warnings .. string.format("<strong>%s</strong><
br /
>",
translatef("WARNING: Rule %s have a port configured with no or improper protocol specified!", i)
)
end
translatef("WARNING: Rule %s have a port configured with no or improper protocol specified!", i)
)
end