diff options
Diffstat (limited to 'opennhrp-controller.lua')
-rw-r--r-- | opennhrp-controller.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opennhrp-controller.lua b/opennhrp-controller.lua index 7c18cf4..aab365d 100644 --- a/opennhrp-controller.lua +++ b/opennhrp-controller.lua @@ -17,9 +17,9 @@ function startstop(self) end function config(self) - return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set") + return controllerfunctions.handle_form(self, function() return self.model:getconfig() end, function(value) return self.model:setconfig(value) end, self.clientdata, "Save", "Edit Config", "Configuration Set") end function expert (self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Set") + return controllerfunctions.handle_form(self, function() return self.model:getconfigfile() end, function(value) return self.model:setconfigfile(value) end, self.clientdata, "Save", "Edit Config", "Configuration Set") end |