summaryrefslogtreecommitdiffstats
path: root/hostname-controller.lua
diff options
context:
space:
mode:
authorZach LeBar <zach@zachlebar.com>2012-03-21 15:06:32 +0000
committerZach LeBar <zach@zachlebar.com>2012-03-21 15:09:16 +0000
commit0874f88bc25066248c28b16d3bbf1ab5cd1f2611 (patch)
tree28ee52ea1b8a44eeff8453b6264953a2ab2665bd /hostname-controller.lua
parent6d638ac9d28eac2c144d229359b64c0edaee2b4d (diff)
downloadacf-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 'hostname-controller.lua')
-rw-r--r--hostname-controller.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/hostname-controller.lua b/hostname-controller.lua
index 623373f..c68c5c3 100644
--- a/hostname-controller.lua
+++ b/hostname-controller.lua
@@ -1,8 +1,6 @@
-- the hostname controller
module (..., package.seeall)
-require("controllerfunctions")
-
default_action = "read"
read = function(self)
@@ -10,5 +8,5 @@ read = function(self)
end
edit = function(self)
- return controllerfunctions.handle_form(self, self.model.read_name, self.model.update_name, self.clientdata, "Save", "Edit Hostname", "Hostname Set")
+ return self.handle_form(self, self.model.read_name, self.model.update_name, self.clientdata, "Save", "Edit Hostname", "Hostname Set")
end