summaryrefslogtreecommitdiffstats
path: root/health-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-11-06 23:49:59 +0000
committerTed Trask <ttrask01@yahoo.com>2012-11-06 23:49:59 +0000
commitd5eedf6db07505aee5ba0d644d90522905d22234 (patch)
treeef6dfcfba460f885f733f1f1079a81f01192940d /health-controller.lua
parent18de0be3afc61a216ee37ddbbcdbf117eb0379d7 (diff)
downloadacf-alpine-baselayout-d5eedf6db07505aee5ba0d644d90522905d22234.tar.bz2
acf-alpine-baselayout-d5eedf6db07505aee5ba0d644d90522905d22234.tar.xz
Changed viewtype ajax to json as per acf-core-0.15.3, and moved viewtype stream out of controller
Diffstat (limited to 'health-controller.lua')
-rw-r--r--health-controller.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/health-controller.lua b/health-controller.lua
index 3b2bbf1..f5cc26c 100644
--- a/health-controller.lua
+++ b/health-controller.lua
@@ -22,9 +22,7 @@ end
networkstats = function(self)
local retval = self.model.get_networkstats()
- if self.clientdata.viewtype then
- self.conf.viewtype = "ajax"
- else
+ if self.conf.viewtype == "html" then
local intf = self:new("alpine-baselayout/interfaces")
local interfaces = intf.model.get_addresses()
intf:destroy()