summaryrefslogtreecommitdiffstats
path: root/clamsmtp-controller.lua
diff options
context:
space:
mode:
authorZach LeBar <zach@zachlebar.com>2012-04-03 18:57:11 +0000
committerZach LeBar <zach@zachlebar.com>2012-04-03 18:57:11 +0000
commit6692843935d8e831750a23cea4547de105b0c50b (patch)
tree11c3e9405f7cd5f101a9a9d6bd0c8b5c11b81a48 /clamsmtp-controller.lua
parentdfcc407cee428c9b237a37467b966d3ce736e391 (diff)
downloadacf-clamsmtp-master.tar.bz2
acf-clamsmtp-master.tar.xz
Fixing acf-clamsmtp to work with changes made to acf-core.HEADmaster
Removing the use of controllerfunctions.lua and using the new 'handle_form()' found in acf_www-controller.lua. Also using 'handle_form()' in place of 'redirect_to_referrer()'.
Diffstat (limited to 'clamsmtp-controller.lua')
-rw-r--r--clamsmtp-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/clamsmtp-controller.lua b/clamsmtp-controller.lua
index 6aaddad..3230fb9 100644
--- a/clamsmtp-controller.lua
+++ b/clamsmtp-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,7 +7,7 @@ function status(self)
end
function startstop(self)
- return controllerfunctions.handle_startstop(self, 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)
@@ -18,5 +15,5 @@ function details(self)
end
function expert(self)
- return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit ClamSMTP Config", "Configuration Set")
+ return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit ClamSMTP Config", "Configuration Set")
end