X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-app-wifischedule%2Fluasrc%2Fmodel%2Fcbi%2Fwifischedule%2Fwifi_schedule.lua;h=07730225b03805d895e66e516aab58444f5fba3c;hb=refs%2Fpull%2F1686%2Fhead;hp=1d301219a8cab61e4b63917d2979e082dde5f6ce;hpb=a85807d3756a8e12c5ab842091b5ef476007f5fa;p=project%2Fluci.git diff --git a/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua b/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua index 1d301219a..07730225b 100644 --- a/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua +++ b/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua @@ -12,8 +12,9 @@ -- -- Author: Nils Koenig -local fs = require "nixio.fs" +local fs = require "nixio.fs" local sys = require "luci.sys" +local uci = require("luci.model.uci").cursor() function time_validator(self, value, desc) if value ~= nil then @@ -110,7 +111,7 @@ modules.wrap = "off" modules.rows = 10 function modules.cfgvalue(self, section) - mod = uci.get("wifi_schedule", section, "modules") + mod = uci:get("wifi_schedule", section, "modules") if mod == nil then mod = "" end @@ -121,7 +122,7 @@ function modules.write(self, section, value) if value then value_list = value:gsub("\r\n", " ") ListValue.write(self, section, value_list) - uci.set("wifi_schedule", section, "modules", value_list) + uci:set("wifi_schedule", section, "modules", value_list) end end -- END Modules