luci-app-ddns: fix errors in global.lua
fix dispatcher and validation errors in global.lua Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
parent
6160a53ab9
commit
3902988878
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ PKG_NAME:=luci-app-ddns
|
||||||
|
|
||||||
# Version == major.minor.patch
|
# Version == major.minor.patch
|
||||||
# increase on new functionality (minor) or patches (patch)
|
# increase on new functionality (minor) or patches (patch)
|
||||||
PKG_VERSION:=2.2.1
|
PKG_VERSION:=2.2.2
|
||||||
|
|
||||||
# Release == build
|
# Release == build
|
||||||
# increase on changes of translation files
|
# increase on changes of translation files
|
||||||
|
|
|
@ -35,6 +35,7 @@ local ns = m:section( NamedSection, "global", "ddns",
|
||||||
.. [[<a href="http://wiki.openwrt.org/doc/uci/ddns#version_2x1" target="_blank">]]
|
.. [[<a href="http://wiki.openwrt.org/doc/uci/ddns#version_2x1" target="_blank">]]
|
||||||
.. translate("For detailed information about parameter settings look here.")
|
.. translate("For detailed information about parameter settings look here.")
|
||||||
.. [[</a>]]
|
.. [[</a>]]
|
||||||
|
)
|
||||||
|
|
||||||
-- section might not exist
|
-- section might not exist
|
||||||
function ns.cfgvalue(self, section)
|
function ns.cfgvalue(self, section)
|
||||||
|
@ -119,7 +120,6 @@ ll.title = translate("Log length")
|
||||||
ll.description = translate("Number of last lines stored in log files")
|
ll.description = translate("Number of last lines stored in log files")
|
||||||
ll.rmempty = true
|
ll.rmempty = true
|
||||||
ll.default = "250"
|
ll.default = "250"
|
||||||
ll.datatype = "and(uinteger,min(1))"
|
|
||||||
function ll.validate(self, value)
|
function ll.validate(self, value)
|
||||||
local n = tonumber(value)
|
local n = tonumber(value)
|
||||||
if not n or math.floor(n) ~= n or n < 1 then
|
if not n or math.floor(n) ~= n or n < 1 then
|
||||||
|
|
Loading…
Reference in a new issue