Merge pull request #509 from neheb/master
[project/luci.git] / applications / luci-app-ddns / luasrc / model / cbi / ddns / global.lua
index e171873..25d09b7 100644 (file)
@@ -10,9 +10,8 @@ local DDNS = require "luci.tools.ddns"                -- ddns multiused functions
 -- cbi-map definition -- #######################################################
 local m = Map("ddns")
 
--- first need to close <a> from cbi map template our <a> closed by template
-m.title = [[</a><a href="]] .. DISP.build_url("admin", "services", "ddns") .. [[">]] 
-       .. translate("Dynamic DNS")
+m.title = [[<a href="]] .. DISP.build_url("admin", "services", "ddns") .. [[">]] 
+       .. translate("Dynamic DNS") .. [[</a>]]
 
 m.description = translate("Dynamic DNS allows that your router can be reached with " ..
                        "a fixed hostname while having a dynamically changing IP address.")
@@ -35,6 +34,7 @@ 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>]]
+       )
 
 -- section might not exist
 function ns.cfgvalue(self, section)
@@ -119,7 +119,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