Fix for missing . in string concatenation

This commit is contained in:
Luca 2016-11-09 17:37:01 +01:00
parent 3d7da1fcc2
commit aa8789db7f

View file

@ -21,11 +21,15 @@ function notifyNtopng(key)
end
-- ############################################
-- Runtime preference
function prefsInputFieldPrefs(label, comment, prekey, key, default_value, _input_type, showEnabled, disableAutocomplete)
k = prekey..key
if(string.ends(prekey, ".")) then
k = prekey..key
else
k = prekey.."."..key
end
if(_GET[key] ~= nil) then
v_s = _GET[key]
@ -329,8 +333,6 @@ function loggingSelector(label, comment, submit_field, redis_key)
else color = "default"
end
if(label ~= "") then print('<tr><td width=50%><strong>'..label..'</strong><p><small>'..comment..'</small></td><td align=right>\n') end
print[[
<input id="]] print(submit_field) print[[" name="]] print(submit_field) print[[" value="]] print(value) print[[" type="hidden">