From 0874f88bc25066248c28b16d3bbf1ab5cd1f2611 Mon Sep 17 00:00:00 2001 From: Zach LeBar Date: Wed, 21 Mar 2012 15:06:32 +0000 Subject: Change all -controller.lua files to use new handle_form() functions found in acf_www-controller.lua instead of the controllerfunctions.lua version and also instead of redirect_to_referrer(). Made corresponding changes to vmail-model .lua to make everything work. --- modules-controller.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules-controller.lua') diff --git a/modules-controller.lua b/modules-controller.lua index dc7735c..8b162a7 100644 --- a/modules-controller.lua +++ b/modules-controller.lua @@ -1,4 +1,4 @@ --- the interfaces controller +-- the modules controller require("controllerfunctions") module (..., package.seeall) @@ -10,9 +10,9 @@ status = function(self) end edit = function(self) - return controllerfunctions.handle_form(self, self.model.read_file, self.model.write_file, self.clientdata, "Save", "Edit Modules file", "File saved") + return self.handle_form(self, self.model.read_file, self.model.write_file, self.clientdata, "Save", "Edit Modules file", "File saved") end reload = function(self) - return self:redirect_to_referrer(self.model.reloadmodules()) + return self.handle_form(self, self.model.get_reloadmodules, self.model.reloadmodules, self.clientdata, "Reload", "Reload Modules") end -- cgit v1.2.3