From 0fae971376abd53b504eceae0b581a92dcd37867 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 28 Apr 2012 12:17:44 +0000 Subject: Updated for handle_form now passing self to get and set functions --- dnsmasq-model.lua | 10 +++++----- 1 file 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() -- cgit v1.2.3