diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:44 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:44 +0000 |
commit | 0fae971376abd53b504eceae0b581a92dcd37867 (patch) | |
tree | 6b16f776cbe499307d10f4d91d0e5b5775300a6d | |
parent | e61f08c5a9e86d5d313038765e7f261f0bc2258b (diff) | |
download | acf-dnsmasq-0fae971376abd53b504eceae0b581a92dcd37867.tar.bz2 acf-dnsmasq-0fae971376abd53b504eceae0b581a92dcd37867.tar.xz |
Updated for handle_form now passing self to get and set functions
-rw-r--r-- | dnsmasq-model.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dnsmasq-model.lua b/dnsmasq-model.lua index d3051cf..ab2d8ff 100644 --- a/dnsmasq-model.lua +++ b/dnsmasq-model.lua @@ -259,11 +259,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 @@ -295,7 +295,7 @@ function getconfig() return cfe({ type="group", value=output, label="DNS Masq Config" }) end -function setconfig(config) +function setconfig(self, config) local success, config = validateconfig(config) if success then @@ -327,9 +327,9 @@ function getconfigfile() return modelfunctions.getfiledetails(configfile) end -function setconfigfile(filedetails) +function setconfigfile(self, filedetails) -- FIXME Validate - return modelfunctions.setfiledetails(filedetails, {configfile}) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end function getleases() |