diff options
author | Zach LeBar <zach@zachlebar.com> | 2012-03-21 15:06:32 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 2012-03-21 15:09:16 +0000 |
commit | 0874f88bc25066248c28b16d3bbf1ab5cd1f2611 (patch) | |
tree | 28ee52ea1b8a44eeff8453b6264953a2ab2665bd /modules-controller.lua | |
parent | 6d638ac9d28eac2c144d229359b64c0edaee2b4d (diff) | |
download | acf-alpine-baselayout-0874f88bc25066248c28b16d3bbf1ab5cd1f2611.tar.bz2 acf-alpine-baselayout-0874f88bc25066248c28b16d3bbf1ab5cd1f2611.tar.xz |
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.HEADmaster
Diffstat (limited to 'modules-controller.lua')
-rw-r--r-- | modules-controller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |