From 6692843935d8e831750a23cea4547de105b0c50b Mon Sep 17 00:00:00 2001 From: Zach LeBar Date: Tue, 3 Apr 2012 18:57:11 +0000 Subject: Fixing acf-clamsmtp to work with changes made to acf-core. 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()'. --- clamsmtp-controller.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'clamsmtp-controller.lua') 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 -- cgit v1.2.3