summaryrefslogtreecommitdiffstats
path: root/config/determine_class.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-27 01:43:30 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-27 01:43:30 +0000
commit148d568b3db38ada9cf0c5085d2c71584d588598 (patch)
tree681681965b7089d49121356a367f39f01c661f05 /config/determine_class.lua
parent24e737f23a7ef3a5f5871d75a23470d6ee27462e (diff)
downloadacf-provisioning-148d568b3db38ada9cf0c5085d2c71584d588598.tar.bz2
acf-provisioning-148d568b3db38ada9cf0c5085d2c71584d588598.tar.xz
Revert "Change function prototypes to pass self and use self.model instead of functions table"
This reverts commit fb00ff8f05dae3c110beceb929ea036e4cd14ae1. Conflicts: provisioning-model.lua Conflict was resolved by removing "mymodule." from function calls that are once again made local
Diffstat (limited to 'config/determine_class.lua')
-rw-r--r--config/determine_class.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/determine_class.lua b/config/determine_class.lua
index 53a1884..675e6e8 100644
--- a/config/determine_class.lua
+++ b/config/determine_class.lua
@@ -1,7 +1,7 @@
-- This is the script run to determine the device class from the HTTP user agent
-local self, agent, classes = ...
+local functions, agent, classes = ...
---self.logevent("got to determine_class script")
+--APP.logevent("got to determine_class script")
local manufacture, model
@@ -16,7 +16,7 @@ elseif string.match(agent, "snom") then
model = string.match(agent, "snom(%d+)")
end
---self.logevent("Found "..(manufacture or "").." model "..(model or ""))
+--APP.logevent("Found "..(manufacture or "").." model "..(model or ""))
if manufacture and model then
for i,c in ipairs(classes.value) do