summaryrefslogtreecommitdiffstats
path: root/postgresql-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql-controller.lua')
-rw-r--r--postgresql-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/postgresql-controller.lua b/postgresql-controller.lua
index 83f2a05..c1af2c5 100644
--- a/postgresql-controller.lua
+++ b/postgresql-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
mvc = {}
mvc.on_load = function(self, parent)
self.model.set_processname(string.match(self.conf.prefix, "[^/]+"))
@@ -15,7 +12,7 @@ function status(self)
end
function startstop(self)
- return controllerfunctions.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
+ return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
function details(self)
@@ -27,5 +24,5 @@ function listfiles(self)
end
function expert(self)
- return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Postgresql File", "File Saved")
+ return self.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Postgresql File", "File Saved")
end