diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:45 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:45 +0000 |
commit | 315100c1f0770015407e7bd355cf58779cc8dfe3 (patch) | |
tree | d80ec617523118bf53dc8f017516e5f36529fc7c | |
parent | 7e4ee0dd94ad37c10cd722916935822d79eea4fc (diff) | |
download | acf-openntpd-315100c1f0770015407e7bd355cf58779cc8dfe3.tar.bz2 acf-openntpd-315100c1f0770015407e7bd355cf58779cc8dfe3.tar.xz |
Updated for handle_form now passing self to get and set functions
-rw-r--r-- | openntpd-model.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openntpd-model.lua b/openntpd-model.lua index 9924701..097eba2 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -52,11 +52,11 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -99,7 +99,7 @@ function read_config () return cfe({ type="group", value=config, label="OpenNTPD Config" }) end -function update_config(config) +function update_config(self, config) local success, config = validate_config(config) if success then @@ -158,7 +158,7 @@ function get_filedetails() return modelfunctions.getfiledetails(configfile) end -function update_filedetails(filedetails) - return modelfunctions.setfiledetails(filedetails, {configfile}) +function update_filedetails(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end |