summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--postfix-model.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/postfix-model.lua b/postfix-model.lua
index 64b1af4..36646ed 100644
--- a/postfix-model.lua
+++ b/postfix-model.lua
@@ -36,11 +36,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
@@ -81,8 +81,8 @@ function getfiledetails(filename)
return modelfunctions.getfiledetails(filename, geteditablefilelist())
end
-function updatefiledetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, geteditablefilelist())
+function updatefiledetails(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, geteditablefilelist())
end
function getnewfile()
@@ -91,7 +91,7 @@ function getnewfile()
return cfe({ type="group", value=options, label="New File" })
end
-function createfile(newfile)
+function createfile(self, newfile)
newfile.errtxt = "Failed to create file"
local path = string.match(newfile.value.filename.value, "^%s*(.*%S)%s*$") or ""
if not string.find(path, "/") then