diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:02:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:02:16 +0000 |
commit | 938f092954ce285686e2e460380c8d6b6735280b (patch) | |
tree | a693be6f6ae18393fc5251ae07a7b35386b0d4e6 | |
parent | 9bb5f5967b53ce365f8ad2813c0e1a0a0865b92a (diff) | |
download | acf-clamav-938f092954ce285686e2e460380c8d6b6735280b.tar.bz2 acf-clamav-938f092954ce285686e2e460380c8d6b6735280b.tar.xz |
Updated for handle_form now passing self to get and set functions
-rw-r--r-- | clamav-model.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clamav-model.lua b/clamav-model.lua index 60ebd8f..e42a76e 100644 --- a/clamav-model.lua +++ b/clamav-model.lua @@ -18,11 +18,11 @@ local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -47,12 +47,12 @@ function getfilelist() return cfe({ type="list", value=listed_files, label="ClamAV File List" }) end -function getfiledetails(clientdata) +function getfiledetails(self, clientdata) return modelfunctions.getfiledetails(clientdata.filename, filelist) end -function updatefiledetails(filedetails) - return modelfunctions.setfiledetails(filedetails, filelist) +function updatefiledetails(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, filelist) end function getlogfile () |