luci-app-ddns: fix errors in global.lua
[project/luci.git] / applications / luci-app-ddns / luasrc / model / cbi / ddns / global.lua
index 32ca541..fbd3cb3 100644 (file)
@@ -7,9 +7,6 @@ local DISP = require "luci.dispatcher"
 local SYS  = require "luci.sys"
 local DDNS = require "luci.tools.ddns"         -- ddns multiused functions
 
--- Bootstrap theme needs 2 or 3 additional linefeeds for tab description for better optic
-local LFLF = (DDNS.get_theme() == "Bootstrap") and [[<br /><br />]] or [[]]
-
 -- cbi-map definition -- #######################################################
 local m = Map("ddns")
 
@@ -38,7 +35,8 @@ local ns = m:section( NamedSection, "global", "ddns",
        .. [[<a href="http://wiki.openwrt.org/doc/uci/ddns#version_2x1" target="_blank">]]
        .. translate("For detailed information about parameter settings look here.")
        .. [[</a>]]
-       .. LFLF )
+       )
+
 -- section might not exist
 function ns.cfgvalue(self, section)
        if not self.map:get(section) then
@@ -122,7 +120,6 @@ ll.title    = translate("Log length")
 ll.description = translate("Number of last lines stored in log files")
 ll.rmempty     = true
 ll.default     = "250"
-ll.datatype    = "and(uinteger,min(1))"
 function ll.validate(self, value)
        local n = tonumber(value)
        if not n or math.floor(n) ~= n or n < 1 then